// Use this for initialization void Start() { inst = this; skill1Text = but_skill1.GetChild(0).GetComponent <Text>(); skill2Text = but_skill2.GetChild(0).GetComponent <Text>(); skill3Text = but_skill3.GetChild(0).GetComponent <Text>(); but_skill1.gameObject.SetActive(false); but_skill2.gameObject.SetActive(false); but_skill3.gameObject.SetActive(false); }
// Use this for initialization void Start() { inst = this; skill1Text = but_skill1.GetChild(0).GetComponent<Text>(); skill2Text = but_skill2.GetChild(0).GetComponent<Text>(); skill3Text = but_skill3.GetChild(0).GetComponent<Text>(); but_skill1.gameObject.SetActive(false); but_skill2.gameObject.SetActive(false); but_skill3.gameObject.SetActive(false); }