Exemplo n.º 1
0
 private void GetControls()
 {
     if (text == null)
     {
         text = this.Ensure <TextComponentWrapper>();
     }
 }
Exemplo n.º 2
0
        private void OnValidate()
        {
            if (textElement == null)
            {
                textElement = GetComponent <TextComponentWrapper>();
            }

            if (textElement != null && string.IsNullOrEmpty(text))
            {
                text = textElement.Text;
            }
        }