Пример #1
0
 /// <summary>
 /// This function advances the conversation between the two characters
 /// </summary>
 public void NextSentence()
 {
     if(dialogueIndex < conversation.Lines.Length)
     {
         DisplayLine();
         dialogueIndex += 1;
     }
     else
     {
         leftUI.HideDialogue();
         rightUI.HideDialogue();
         dialogueWindow.SetActive(false);
         dialogueIndex = 0;
     }
 }
Пример #2
0
 /// <summary>
 /// This function displays the dialogue in an order of active and inactive.
 /// </summary>
 public void SelectDialogue(DialogueUIDisplay active, DialogueUIDisplay inactive, string dialogue)
 {
     active.Dialogue = dialogue;
     active.DisplayDialogue();
     inactive.HideDialogue();
 }