Browse Source

Removed unused command index

master
chrisgregan 11 years ago
parent
commit
0a0d29aa32
  1. 2
      Assets/Fungus/FungusScript/Editor/FungusCommandEditor.cs
  2. 7
      Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs

2
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;

7
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<FungusCommand>();
int index = 1;
foreach (FungusCommand command in commands)
{
FungusCommandEditor commandEditor = Editor.CreateEditor(command) as FungusCommandEditor;
commandEditor.DrawInspectorGUI(index++);
commandEditor.DrawInspectorGUI();
}
if (Application.isPlaying)

Loading…
Cancel
Save