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