コード例 #1
0
 /// <summary>
 /// Quits the dialogues (close the UI)
 /// </summary>
 public void QuitDialogue()
 {
     currentDialogue = null;
     TriggerExitAction();
     currentConversant = null;
     currentNode       = null;
     OnConversationUpdated();
 }
コード例 #2
0
 /// <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();
     }
 }
コード例 #3
0
 /// <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();
     }
 }