Browse Source

New commands are automatically selected

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

BIN
Assets/Example/Scenes/Example.unity

Binary file not shown.

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

@ -85,8 +85,11 @@ namespace Fungus
{
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) {

Loading…
Cancel
Save