public void Start() { tf = transform; manager = GameObject.Find(ManagerName).GetComponent <UIWindowManager>(); image = tf.Find("Panel/Header").GetComponent <Image>(); }
public void Start() { manager = GameObject.Find(CanvasName).GetComponent <UIWindowManager>(); image = transform.Find("Panel/Header").GetComponent <Image>(); tf = transform; }
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 }