Пример #1
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);
 }