diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs index eba66a00..f420a33f 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs +++ b/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) diff --git a/Assets/Fungus/FungusScript/Scripts/FungusScript.cs b/Assets/Fungus/FungusScript/Scripts/FungusScript.cs index e8e1dd1c..9341f09c 100644 --- a/Assets/Fungus/FungusScript/Scripts/FungusScript.cs +++ b/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; diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index 4aa2de9c..6a658189 100644 Binary files a/Assets/Shuttle/ShuttleGame.unity and b/Assets/Shuttle/ShuttleGame.unity differ