Browse Source

Renamed selectedCommandIndex

master
chrisgregan 11 years ago
parent
commit
806c170470
  1. 4
      Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs
  2. 2
      Assets/Fungus/FungusScript/Scripts/FungusScript.cs
  3. BIN
      Assets/Shuttle/ShuttleGame.unity

4
Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs

@ -139,12 +139,12 @@ namespace Fungus.Script
}
}
int selectedCommandIndex = EditorGUILayout.Popup(fungusScript.selectedCommandIndex, commandNames.ToArray());
int selectedCommandIndex = EditorGUILayout.Popup(fungusScript.selectedAddCommandIndex, commandNames.ToArray());
if (EditorGUI.EndChangeCheck())
{
Undo.RecordObject(fungusScript, "Select Command");
fungusScript.selectedCommandIndex = selectedCommandIndex;
fungusScript.selectedAddCommandIndex = selectedCommandIndex;
}
if (selectedCommandIndex >= commandTypes.Count)

2
Assets/Fungus/FungusScript/Scripts/FungusScript.cs

@ -16,7 +16,7 @@ namespace Fungus.Script
public FungusCommand copyCommand;
[HideInInspector]
public int selectedCommandIndex;
public int selectedAddCommandIndex;
[HideInInspector]
public Vector2 scriptScrollPos;

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save