예제 #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);
 }