/// <summary> /// Shuts down the game. /// </summary> public virtual void Close() { theTimer.Stop(); paused = true; framesPerSecond.Stop(); framesPerSecond.StatusStringDelegate = null; }
public void Init() { if (timer != null) { timer.Duration = duration; } else { timer = new TimerBase(duration); } if (timer != null) { timer.Stop(); } rotateAix = rotateAix.normalized; this.duration = this.duration >= 0 ? this.duration : 0; isRotating = false; }