diff --git a/Assets/Fungus/Scripts/Editor/IfEditor.cs b/Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs similarity index 95% rename from Assets/Fungus/Scripts/Editor/IfEditor.cs rename to Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs index fe215732..8fd4ef5f 100644 --- a/Assets/Fungus/Scripts/Editor/IfEditor.cs +++ b/Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; namespace Fungus.EditorUtils { - [CustomEditor (typeof(If), true)] - public class IfEditor : CommandEditor + [CustomEditor (typeof(VariableCondition), true)] + public class VariableConditionEditor : CommandEditor { protected SerializedProperty variableProp; protected SerializedProperty compareOperatorProp; @@ -34,7 +34,7 @@ namespace Fungus.EditorUtils { serializedObject.Update(); - If t = target as If; + VariableCondition t = target as VariableCondition; var flowchart = (Flowchart)t.GetFlowchart(); if (flowchart == null) diff --git a/Assets/Fungus/Scripts/Editor/IfEditor.cs.meta b/Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs.meta similarity index 100% rename from Assets/Fungus/Scripts/Editor/IfEditor.cs.meta rename to Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs.meta