/// <summary> /// Closes the running game, if there's no game running do nothing. /// </summary> public virtual void Close() { if (Running) { // - Stop all loops InputGameLoop.Stop(); UpdateGameLoop.Stop(); GraphicGameLoop.Stop(); } }
/// <summary> /// Close the running game. /// </summary> public virtual void Close() { if (!GameTree.CloseGame()) { return; } PhysicsGameLoop.Stop(); InputGameLoop.Stop(); }