コード例 #1
0
ファイル: ScreenDebugger.cs プロジェクト: Chapmania/Juniper
 private void GetControls()
 {
     if (text == null)
     {
         text = this.Ensure <TextComponentWrapper>();
     }
 }
コード例 #2
0
ファイル: Speakable.cs プロジェクト: Chapmania/Juniper
        private void OnValidate()
        {
            if (textElement == null)
            {
                textElement = GetComponent <TextComponentWrapper>();
            }

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