public void RefreshTree() { root = new DialogueNode(); root.AddNpcLine("How can I help you?"); root.AddPlayerLine("Wait I have more questions"); // first layer DialogueNode oneOne = new DialogueNode(); root.addChild(oneOne); oneOne.AddNpcLine("I am Bob Saget."); oneOne.AddPlayerLine("Who are you?"); DialogueNode twoOne = new DialogueNode(); root.addChild(twoOne); twoOne.AddNpcLine("I'm an actor! Haven't you heard of me?"); twoOne.AddPlayerLine("What do you do?"); twoOne.addChild(root); }