private void Tick() { game.Tick(); if (!IsBlockingRun && game.IsExiting && !hasExitRan) { hasExitRan = true; OnExiting(this, EventArgs.Empty); } }
private void Tick() { game.Tick(); if (game.IsExiting() && !hasExitRan) { hasExitRan = true; OnExiting(this, EventArgs.Empty); } }