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