private NodeBase CreateInitialWindow(NodeBase.Type type) { NodeBase window = new NodeBase(type, this); windows.Add(window); return(window); }
private NodeBase CreateWindow(NodeBase.Type type) { NodeBase window = new NodeBase(type, this); windows.Add(window); if (type == NodeBase.Type.Speech) { DialogueSpeech speech = dialogue.AddSpeech("New Speech"); window.speech = speech; } else if (type == NodeBase.Type.Option) { DialogueOptions option = dialogue.AddOptions("New Option"); window.options = option; } return(window); }