Browse Source

Set active command as selected command when playing the game

master
chrisgregan 10 years ago
parent
commit
760e6de587
  1. 5
      Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs
  2. BIN
      Assets/Shuttle/ShuttleGame.unity

5
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);

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save