public void Quit() { dialogue = null; StartExitAction(); _node = null; IsChoosing = false; _aiDialogue = null; OnUpdate?.Invoke(); }
public void StartDialogue(AIDialogue aiDialogue, Dialogue newDialogue) { GetComponent <ActionScheduler>().StartAction(this); _aiDialogue = aiDialogue; dialogue = newDialogue; _node = dialogue.GetRootNode(); _isOpeningDialogue = true; }
private void SelectNewDialogues(int phase) { aiDialogueIndex = 0; foreach (AIDialogue choice in aiDialogues) { if (choice.time == (PhaseManager.StatePhase)phase) { currentChoices = choice; currentDialogue = choice.aiDialogues[aiDialogueIndex]; } } }