示例#1
0
 private IEnumerator ReduceTimer()
 {
     while (timeLeft > 0)
     {
         timeLeft--;
         UpdateTimerText();
         yield return(new WaitForSecondsRealtime(1f));
     }
     timeLeft = 0;
     UpdateTimerText();
     OnTimeToClearBoard?.Invoke();
     workstation.StopRound();
 }
示例#2
0
 private void OnMouseDown()
 {
     workstation.DeliverCookie();
     OnTimeToClearBoard?.Invoke();
 }