// Update is called once per frame
 void Update()
 {
     if (GameManager.Instance.winner && !win)
     {
         win = true;
         sound.Click();
         music.Stop();
         Invoke("PlayMusic", 4);
     }
 }
Example #2
0
 public void Play()
 {
     if (GI.t <= 0 || GI.t == 30)
     {
         Done.Click();
         //Debug.Log("fail");
     }
     else
     {
         Fail.Click();
         //Debug.Log("fail");
     }
 }
 private void Button_Click(object sender, EventArgs e)
 {
     ClickController.Click(sender);
 }