public void NextNode(int index) { if (!ConversationModeOn) { return; } if (index == -1) { //exit system ConversationModeOn = false; //in case an unclosed end, send again //Space.DispatchEvent(Events.EndConversation); //Space.DispatchEvent(Events.CloseUI, new UIEvent(this)); Converse = null; CurrentNode = null; //if (UIControl.IsOpened()) // Space.DispatchEvent(Events.CloseDescription); //print(UIControl.IsOpened()); return; } CurrentNode = Converse.GetNode(index); NodeIndex = index; NextAction(); }
public void NextNode(int index) { //print(index); if (index == -1) { return; } CurrentNode = TimeCheck.GetNode(index); NodeIndex = index; NextAction(); }
public void NextNode(int index) { //print(index); if (index == -1) { //Game Over Space.DispatchEvent(Events.EndGame); return; } CurrentNode = TimeLine.GetNode(index); NodeIndex = index; NextAction(); }