public void QuitDialogue() { onExitActionTrigger(); aiDialogueManager = null; dialogue = null; currentNode = null; isChoosing = false; this.GetComponent <PlayerController>().SwitchPlayerControll(true); onConversationUpdated(); }
public void StartDialogue(AIDialogueManager newConversant, Dialogue newDialogue) { Debug.Log(newConversant); Debug.Log(newDialogue); aiDialogueManager = newConversant; dialogue = newDialogue; currentNode = dialogue.GetRootNode(); this.GetComponent <PlayerController>().SwitchPlayerControll(false); onEnterActionTrigger(); onConversationUpdated(); }