private void __ProcessSimpleChoiceNode(IDNodeBase _node) { SimpleChoiceNode node = (SimpleChoiceNode)_node; state = State.DisplayingSimpleChoices; m_choice0.SetChoice(node.Choice0Text, -1); m_choice0.Enable(); m_choice1.SetChoice(node.Choice1Text, -1); m_choice1.Enable(); }
public void OnChoiceSelected(int targetID, int index) { switch (state) { case State.DisplayingMainChoices: // Change current node to target node m_scenario.Jump(targetID); m_scenario.RemoveChoice(index); DisableChoices(); state = State.Processing; break; case State.DisplayingSimpleChoices: SimpleChoiceNode temp = m_scenario.GetCurrentNode() as SimpleChoiceNode; m_scenario.AdvanceByNode(temp.GetNextNode(index)); DisableChoices(); state = State.Processing; break; } }