Ejemplo n.º 1
0
 public virtual void Awake()
 {
     if (dialogueUI == null)
     {
         dialogueUI = Tools.GetComponentAnywhere <TextMeshProDialogueUI>(gameObject);
     }
     if (typewriterEffect == null)
     {
         typewriterEffect = GetComponentInChildren <TextMeshProTypewriterEffect>();
     }
 }
Ejemplo n.º 2
0
 public void TextMeshProSendTextChangeMessage(TMPro.TextMeshProUGUI text)
 {
     if (text == null)
     {
         return;
     }
     if (dialogueUI == null)
     {
         dialogueUI = text.GetComponentInParent <TextMeshProDialogueUI>();
     }
     if (dialogueUI == null)
     {
         return;
     }
     dialogueUI.SendMessage("OnTextChange", text, SendMessageOptions.DontRequireReceiver);
 }