Ejemplo n.º 1
0
 static void InitStaticVariables()
 {
     s_mode            = GameTimeMode.UnityStandard;
     s_manualTime      = 0;
     s_manualDeltaTime = 0;
     s_manualPaused    = false;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Inits the GameTime given its mode.
 /// Starts the internal stopwatch.
 /// </summary>
 public GameTime(GameTimeMode mode = GameTimeMode.Stopwatch)
 {
     this.Mode      = mode;
     this.stopwatch = new Stopwatch();
     this.stopwatch.Start();
 }