public void StopDialogue() { UI.ToggleDialogueUI(false); UI.DisableChoices(); paused = false; currDialogue = null; currConvo = null; currChar = null; currChoices = null; inDialogue = false; onEndDialogue?.Invoke(); InteractionManager.I.ToggleHideBlockInteractables(false); }
public void AssignDialogue(Dialogue dialogue, Dialogue.Convo convo, int startLineIndex) { if (inDialogue && !replaceCurr) { return; } InteractionManager.I.ToggleHideBlockInteractables(true); replaceCurr = false; paused = false; currDialogue = dialogue; currConvo = convo; currLineIndex = startLineIndex; UI.ToggleDialogueUI(true); inDialogue = true; onStartDialogue?.Invoke(); NextLine(); }
public void ReplaceDialogue(Dialogue.Convo convo, int startLineIndex) { replaceCurr = true; AssignDialogue(currDialogue, convo, startLineIndex); }
public void ReplaceDialogue(string convoId) { Dialogue.Convo convo = currDialogue.GetConvo(convoId); ReplaceDialogue(convo, 0); }