コード例 #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);
         }
     }
 }
コード例 #2
0
 public static void OpenTextbox(string message)
 {
     PlayerManager.SetReadingMessage(true);
     textboxHandler.SetTextToPrint(message);
 }