public void PresentNode(int nodeID) { m_currentNode = nodeID; DialogueGraph.Node node = m_graph.nodes[nodeID]; // show the appropriate panel dialoguePanel.Show(node.isDialogue); optionPanel.Show(!node.isDialogue); // populate the appropriate panel data if (node.isDialogue) { dialoguePanel.Set(node.dialogue, node.nextNode); } else { if (m_currentNode == 0) { optionPanel.Set(node.options, disabled); } else { optionPanel.Set(node.options, null); } } }