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

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