Пример #1
0
 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);
 }
Пример #2
0
 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();
 }
Пример #3
0
 public void ReplaceDialogue(Dialogue.Convo convo, int startLineIndex)
 {
     replaceCurr = true;
     AssignDialogue(currDialogue, convo, startLineIndex);
 }
Пример #4
0
 public void ReplaceDialogue(string convoId)
 {
     Dialogue.Convo convo = currDialogue.GetConvo(convoId);
     ReplaceDialogue(convo, 0);
 }