|
|
@ -17,6 +17,9 @@ namespace Fungus |
|
|
|
Sequence sequence = Undo.AddComponent<Sequence>(newFungusScriptGO); |
|
|
|
Sequence sequence = Undo.AddComponent<Sequence>(newFungusScriptGO); |
|
|
|
sequence.nodeRect.x += 60; |
|
|
|
sequence.nodeRect.x += 60; |
|
|
|
sequence.nodeRect.y += 60; |
|
|
|
sequence.nodeRect.y += 60; |
|
|
|
|
|
|
|
GameStarted gameStarted = Undo.AddComponent<GameStarted>(newFungusScriptGO); |
|
|
|
|
|
|
|
gameStarted.parentSequence = sequence; |
|
|
|
|
|
|
|
sequence.eventHandler = gameStarted; |
|
|
|
fungusScript.selectedSequence = sequence; |
|
|
|
fungusScript.selectedSequence = sequence; |
|
|
|
fungusScript.scrollPos = Vector2.zero; |
|
|
|
fungusScript.scrollPos = Vector2.zero; |
|
|
|
Undo.RegisterCreatedObjectUndo(newFungusScriptGO, "Create Fungus Script"); |
|
|
|
Undo.RegisterCreatedObjectUndo(newFungusScriptGO, "Create Fungus Script"); |
|
|
|