Browse Source

New commands are automatically selected

master
chrisgregan 10 years ago
parent
commit
408809b9e8
  1. BIN
      Assets/Example/Scenes/Example.unity
  2. 5
      Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs

BIN
Assets/Example/Scenes/Example.unity

Binary file not shown.

5
Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs

@ -86,7 +86,10 @@ namespace Fungus
return null; return null;
} }
return sequence.gameObject.AddComponent(fungusScript.selectedAddCommandType) as Command; Command newCommand = sequence.gameObject.AddComponent(fungusScript.selectedAddCommandType) as Command;
fungusScript.selectedCommand = newCommand;
return newCommand;
} }
public void Duplicate(int index) { public void Duplicate(int index) {

Loading…
Cancel
Save