예제 #1
0
    public void StartRound(int seconds, MyCountdownTimer.TimerElapsedCallback te, MyCountdownTimer.TimerFinished tf)
    {
        if (!isRoundStarted)
        {
            Debug.Log("start round");
            roundTime = seconds;

            finishedCallback = tf;
            intervalCallback = te;

            timeRemaining  = roundTime;
            isRoundStarted = true;

            //timeDisplay.enabled = true;//works: shows the display
            timeDisplay.SetText((timeRemaining).ToString());

            countdownTimer.StartTimer(timeRemaining, 1, 1, TimerElapsed, TimerFinished);
        }
    }
예제 #2
0
 public void StartFinalCountDown(int seconds, MyCountdownTimer.TimerElapsedCallback te, MyCountdownTimer.TimerFinished tf)
 {
     //timeDisplay.enabled = false;//works: hides the display
     // StartRound(seconds, te, )
 }