/// <summary> /// Quits the dialogues (close the UI) /// </summary> public void QuitDialogue() { currentDialogue = null; TriggerExitAction(); currentConversant = null; currentNode = null; OnConversationUpdated(); }
/// <summary> /// Starts a Dialogue based on an AIConversant data /// </summary> /// <param name="_currentConversant"></param> /// <param name="_currentDialogue"></param> public void StartDialogue(AIConversant _currentConversant, DialogueContainer _currentDialogue) { if (_currentDialogue != null && _currentConversant != null) { currentDialogue = _currentDialogue; currentConversant = _currentConversant; currentNode = currentDialogue.GetRootNode(); if (OnConversationUpdated != null) { OnConversationUpdated(); } TriggerEnterAction(); } }
/// <summary> /// Starts a Dialogue based on an AIConversant data /// </summary> /// <param name="_currentConversant"></param> /// <param name="_currentDialogue"></param> public void StartDialogue(AIConversant _currentConversant, DialogueContainer _currentDialogue) { if (_currentDialogue != null && _currentConversant != null) { currentDialogue = _currentDialogue; currentConversant = _currentConversant; currentNode = currentDialogue.GetRootNode(); //We need to update the exposed properties linked to buttons here HandleButtonsExposedProperties(); if (OnConversationUpdated != null) { OnConversationUpdated(); } TriggerEnterAction(); } }