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