Example #1
0
 public void Quit()
 {
     dialogue = null;
     StartExitAction();
     _node       = null;
     IsChoosing  = false;
     _aiDialogue = null;
     OnUpdate?.Invoke();
 }
Example #2
0
        public void StartDialogue(AIDialogue aiDialogue, Dialogue newDialogue)
        {
            GetComponent <ActionScheduler>().StartAction(this);

            _aiDialogue        = aiDialogue;
            dialogue           = newDialogue;
            _node              = dialogue.GetRootNode();
            _isOpeningDialogue = true;
        }
Example #3
0
 private void SelectNewDialogues(int phase)
 {
     aiDialogueIndex = 0;
     foreach (AIDialogue choice in aiDialogues)
     {
         if (choice.time == (PhaseManager.StatePhase)phase)
         {
             currentChoices  = choice;
             currentDialogue = choice.aiDialogues[aiDialogueIndex];
         }
     }
 }