Beispiel #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         if (automatic)
         {
             textbox.SetTextToPrint(textToPrint.text);
             textbox.SetCharacterPortrait(portraitToUse);
             textbox.setFinalBox(isFinalBox);
             Destroy(this);
         }
     }
 }
Beispiel #2
0
 public static void OpenTextbox(string message)
 {
     PlayerManager.SetReadingMessage(true);
     textboxHandler.SetTextToPrint(message);
 }