diff --git a/Assets/Fungus/FungusScript/Editor/FungusCommandEditor.cs b/Assets/Fungus/FungusScript/Editor/FungusCommandEditor.cs index 0abd9f44..877538f1 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusCommandEditor.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusCommandEditor.cs @@ -21,7 +21,7 @@ namespace Fungus.Script } } - public virtual void DrawInspectorGUI(int commandIndex) + public virtual void DrawInspectorGUI() { FungusCommand t = target as FungusCommand; diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs index d445eb59..eba66a00 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs @@ -61,6 +61,10 @@ namespace Fungus.Script GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); + EditorGUILayout.Separator(); + + + EditorGUILayout.Separator(); DrawVariablesGUI(); @@ -98,11 +102,10 @@ namespace Fungus.Script GUILayout.Box("Commands", GUILayout.ExpandWidth(true)); FungusCommand[] commands = sequence.GetComponents(); - int index = 1; foreach (FungusCommand command in commands) { FungusCommandEditor commandEditor = Editor.CreateEditor(command) as FungusCommandEditor; - commandEditor.DrawInspectorGUI(index++); + commandEditor.DrawInspectorGUI(); } if (Application.isPlaying)