REname to AppleMachine

This commit is contained in:
Michal Pikulski
2025-11-03 10:36:56 +01:00
parent 54c9094be1
commit 3e343d074c
9 changed files with 19 additions and 19 deletions

View File

@@ -157,7 +157,7 @@ namespace Editor
var componentType = component.GetType();
if (componentType.Name == "StateMachine" && componentType.Namespace == "Pixelplacement")
{
bool isAlreadySaveable = component is SaveableStateMachine;
bool isAlreadySaveable = component is AppleMachine;
foundStateMachines.Add(new StateMachineInfo
{
name = component.gameObject.name,
@@ -189,7 +189,7 @@ namespace Editor
var componentType = component.GetType();
if (componentType.Name == "StateMachine" && componentType.Namespace == "Pixelplacement")
{
bool isAlreadySaveable = component is SaveableStateMachine;
bool isAlreadySaveable = component is AppleMachine;
foundStateMachines.Add(new StateMachineInfo
{
name = component.gameObject.name,
@@ -336,7 +336,7 @@ namespace Editor
var componentType = component.GetType();
if (componentType.Name == "StateMachine" &&
componentType.Namespace == "Pixelplacement" &&
!(component is SaveableStateMachine))
!(component is AppleMachine))
{
if (MigrateComponent(component.gameObject, component))
{
@@ -369,7 +369,7 @@ namespace Editor
var componentType = component.GetType();
if (componentType.Name == "StateMachine" &&
componentType.Namespace == "Pixelplacement" &&
!(component is SaveableStateMachine))
!(component is AppleMachine))
{
bool success = MigrateComponent(gameObject, component);
@@ -412,7 +412,7 @@ namespace Editor
Object.DestroyImmediate(oldComponent);
// Add new component
var newSM = gameObject.AddComponent<SaveableStateMachine>();
var newSM = gameObject.AddComponent<AppleMachine>();
// Restore data using SerializedObject
SerializedObject newSO = new SerializedObject(newSM);