Пример #1
0
 //restarts the instance
 public static void RestartInstance()
 {
     GetInstance().pause();
     gameTimer = new GameTimer();
     GetInstance().start();
 }
Пример #2
0
 //starts the timer
 public static void StartTimer()
 {
     if (gameTimer == null)
         gameTimer = new GameTimer();
 }
Пример #3
0
 //returns the instance of the timer
 public static GameTimer GetInstance()
 {
     if (gameTimer == null)
         gameTimer = new GameTimer();
     return gameTimer;
 }