diff --git a/Assets/Fungus/FungusScript/Editor/SequenceEditor.cs b/Assets/Fungus/FungusScript/Editor/SequenceEditor.cs index 5c60641b..a679adac 100644 --- a/Assets/Fungus/FungusScript/Editor/SequenceEditor.cs +++ b/Assets/Fungus/FungusScript/Editor/SequenceEditor.cs @@ -138,13 +138,14 @@ namespace Fungus.Script FungusCommand newCommand = Undo.AddComponent(fungusScript.selectedSequence.gameObject, selectedType) as FungusCommand; Undo.RecordObject(fungusScript, "Add Command"); fungusScript.selectedSequence.commandList.Add(newCommand); + fungusScript.selectedCommand = newCommand; } if (fungusScript.copyCommand != null) { if (GUILayout.Button("Paste")) { - FungusCommandEditor.PasteCommand(fungusScript.copyCommand, fungusScript.selectedSequence); + fungusScript.selectedCommand = FungusCommandEditor.PasteCommand(fungusScript.copyCommand, fungusScript.selectedSequence); } } diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index 3924df6f..5e866ffb 100644 Binary files a/Assets/Shuttle/ShuttleGame.unity and b/Assets/Shuttle/ShuttleGame.unity differ