void Start () { root = GameObject.Find("UI Root"); em = root.transform.Find("Edu_Panel").gameObject.GetComponent<EduManager>(); GameObject helpgo = root.transform.Find("Edu_Panel/Selection_Container/Left_Container/Help_Label").gameObject; GameObject hintgo = root.transform.Find("Edu_Panel/Selection_Container/Right_Container/Hint_Label").gameObject; helplabel = helpgo.GetComponent<UILabel>(); hintlabel = hintgo.GetComponent<UILabel>(); number = System.Convert.ToInt32(this.name.Substring(6)); }
void Start () { root = GameObject.Find("UI Root"); em = root.transform.Find("Edu_Panel").gameObject.GetComponent<EduManager>(); }