Example #1
0
 public void StartDialogue(AIConversant newConversant, Dialogue newDialogue)
 {
     currentConversant = newConversant;
     currentDialogue   = newDialogue;
     currentNode       = currentDialogue.GetRootNode();
     TriggerEnterAction();
     onConversationUpdated();
     GetComponent <PlayerController>().enabled = false;
     GetComponent <ActionScheduler>().StartAction(this);
 }
Example #2
0
 public void Quit()
 {
     currentDialogue = null;
     TriggerExitAction();
     currentConversant = null;
     currentNode       = null;
     isChoosing        = false;
     onConversationUpdated();
     onConversationEnded();
     GetComponent <PlayerController>().enabled = true;
 }