public void Run() { AssertNotDisposed(); if (!hasInitialized) { DoInitialize(); hasInitialized = true; } BeginRun(); gameTimer = Stopwatch.StartNew(); FNAPlatform.RunLoop(this); EndRun(); OnExiting(this, EventArgs.Empty); }
public void Run() { AssertNotDisposed(); if (!hasInitialized) { GameSubThread.Setup(this); GameSubThread.Instance.ScheduleWait(DoInitialize); hasInitialized = true; } BeginRun(); gameTimer = Stopwatch.StartNew(); FNAPlatform.RunLoop(this); GameSubThread.Abort(); EndRun(); OnExiting(this, EventArgs.Empty); }