From 760e6de5871fae7652bc4b0c489fbc9d15aa1dcb Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 3 Sep 2014 12:51:08 +0100 Subject: [PATCH] Set active command as selected command when playing the game --- .../FungusScript/Editor/FungusScriptEditor.cs | 5 +++++ Assets/Shuttle/ShuttleGame.unity | Bin 121964 -> 121964 bytes 2 files changed, 5 insertions(+) diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs index a48abf9f..463177e5 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs @@ -24,6 +24,11 @@ namespace Fungus.Script t.transform.hideFlags = HideFlags.None; } + if (Application.isPlaying) + { + t.selectedCommand = t.executingSequence.activeCommand; + } + EditorGUI.BeginChangeCheck(); float stepTime = EditorGUILayout.FloatField(new GUIContent("Step Time", "Minimum time to execute each step"), t.stepTime); diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index 5e866ffbef84c83cac32b3b65f30201d4cb9085d..f600f545f66fc7cc0ce13f3ecb611b9ba3399a9e 100644 GIT binary patch delta 22 ecmaE}gZ<48_J%EtHx{zIRD2$_{mw$h3044zp9@m} delta 22 dcmaE}gZ<48_J%EtHx{xm0KxV<3mGR^0RVKa2?ziH