Beispiel #1
0
    private void DisplayTime()
    {
        float  timerToEndGame = timeKeeper.Get("game");
        int    minutes        = Mathf.FloorToInt(timerToEndGame / 60F);
        int    seconds        = Mathf.FloorToInt(timerToEndGame - minutes * 60);
        string tempTime       = string.Format("{0:0}:{1:00}", minutes, seconds);

        countDownDisplay.text = tempTime;
    }