void Awake() { leftbutton = GameObject.Find("LeftButton").GetComponentInChildren <Text>(); resetleft = GameObject.Find("LeftButton").GetComponent <Piano_Button>(); rightbutton = GameObject.Find("RightButton").GetComponentInChildren <Text>(); resetright = GameObject.Find("RightButton").GetComponent <Piano_Button>(); score = GameObject.Find("Score").GetComponent <Piano_Score>(); anim = gameObject.GetComponent <Animator>(); }
void Awake() { ques = FindObjectOfType <Piano_Question>(); resetright = GameObject.Find("RightButton").GetComponent <Piano_Button>(); resetleft = GameObject.Find("LeftButton").GetComponent <Piano_Button>(); }