From ab1885dcbb2c364b5e4d9a2b20c2c30303a5cbb5 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Sat, 17 Jan 2015 23:51:18 +0000 Subject: [PATCH] Switching dialogs on click causes text to skip #73 Changing format of commit messages for simplicity --- Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs index 01c4ce8d..38fcf085 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs @@ -17,6 +17,9 @@ namespace Fungus Sequence sequence = Undo.AddComponent(newFungusScriptGO); sequence.nodeRect.x += 60; sequence.nodeRect.y += 60; + GameStarted gameStarted = Undo.AddComponent(newFungusScriptGO); + gameStarted.parentSequence = sequence; + sequence.eventHandler = gameStarted; fungusScript.selectedSequence = sequence; fungusScript.scrollPos = Vector2.zero; Undo.RegisterCreatedObjectUndo(newFungusScriptGO, "Create Fungus Script");