예제 #1
0
        public void Start()
        {
            tf = transform;

            manager = GameObject.Find(ManagerName).GetComponent <UIWindowManager>();

            image = tf.Find("Panel/Header").GetComponent <Image>();
        }
예제 #2
0
        public void Start()
        {
            manager = GameObject.Find(CanvasName).GetComponent <UIWindowManager>();

            image = transform.Find("Panel/Header").GetComponent <Image>();

            tf = transform;
        }
예제 #3
0
        public void Start()
        {
            manager = GameObject.Find(CanvasName).GetComponent <UIWindowManager>();

#if UNITY_2017_1_OR_NEWER
            image = transform.Find("Panel/Header").GetComponent <Image>();
#else
            image = transform.FindChild("Panel/Header").GetComponent <Image>();
#endif
        }