Example #1
0
        public void Awake()
        {
            indicator = this.Query("Center/Indicator");
            var t = transform.Find("LoadingStatus");

            if (t != null)
            {
                text = t.Ensure <TextComponentWrapper>();
            }
        }
Example #2
0
        private void GetControls()
        {
            if (tooltip == null)
            {
                tooltip = transform.Find("Tooltip");
            }

            if (tooltip != null && textElement == null)
            {
                textElement = tooltip.Ensure <TextComponentWrapper>();
                textElement.SetupControls();
            }

            if (speech == null)
            {
                speech = GetComponent <Speakable>();
            }
        }