public override DialogueNode Next(DialogueContext context) { currentNodeIndex++; if (currentNodeIndex == nodes.Count) { currentNodeIndex = 0; return(context.GetDialogueNode(nextNodeId)); } return(this); }
public override DialogueNode Next(DialogueContext context) { return(context.GetDialogueNode(nextNodeId)); }
public void SelectChoice() { dialogueContext.HideChoice(); dialogueContext.VisitNode(dialogueContext.GetDialogueNode(nextNodeId)); }