Exemplo n.º 1
0
 private void StartScreen_OnTimeChanged(object sender, Counter.OnTimeChangedEventArgs e)
 {
     if (e.currentTime <= 1.5f)
     {
         animator.Play("Door_Open");
         Invoke("SetActiveFalse", 1.5f);
     }
 }
Exemplo n.º 2
0
 private void Counter_OnTimeChanged(object sender, Counter.OnTimeChangedEventArgs e)
 {
     text.text = e.currentTime.ToString(); //Show current time
     if (e.currentTime <= 0)
     {
         text.text              = "Start!";
         counter.OnTimeChanged -= Counter_OnTimeChanged;
         text.CrossFadeAlpha(0, 1f, false);
     }
 }