private void GetControls() { if (text == null) { text = this.Ensure <TextComponentWrapper>(); } }
private void OnValidate() { if (textElement == null) { textElement = GetComponent <TextComponentWrapper>(); } if (textElement != null && string.IsNullOrEmpty(text)) { text = textElement.Text; } }