diff --git a/Assets/Example/Scenes/Example.unity b/Assets/Example/Scenes/Example.unity index 8e02f55c..3d3cd421 100644 Binary files a/Assets/Example/Scenes/Example.unity and b/Assets/Example/Scenes/Example.unity differ diff --git a/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs b/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs index 17f738c4..b15c9a3d 100644 --- a/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs +++ b/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) {