Esempio n. 1
0
        private NodeBase CreateInitialWindow(NodeBase.Type type)
        {
            NodeBase window = new NodeBase(type, this);

            windows.Add(window);
            return(window);
        }
Esempio n. 2
0
        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);
        }