Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     ques       = FindObjectOfType <Piano_Question>();
     resetright = GameObject.Find("RightButton").GetComponent <Piano_Button>();
     resetleft  = GameObject.Find("LeftButton").GetComponent <Piano_Button>();
 }