Exemplo n.º 1
0
 private TextWithEmoji GetEmojiText()
 {
     if (_emojiText == null)
     {
         foreach (Transform child in transform)
         {
             if (child.GetComponent <TextWithEmoji> () != null)
             {
                 _emojiText = child.GetComponent <TextWithEmoji> ();
                 break;
             }
         }
     }
     return(_emojiText);
 }
Exemplo n.º 2
0
 protected override void Awake()
 {
     base.Awake();
     _emojiText = gameObject.GetComponentInChildren <TextWithEmoji> ();
 }