protected override void OnDestroy() { DestroyTickTimer(); EntitySystemWorld.Shutdown(); ControlsWorld.Shutdown(); base.OnDestroy(); instance = null; }
protected override void OnDestroy() { MapSystemWorld.MapDestroy(); if (EntitySystemWorld.Instance != null) { EntitySystemWorld.Instance.WorldDestroy(); } Server_DestroyServer("The server has been destroyed"); Client_DisconnectFromServer(); EntitySystemWorld.Shutdown(); GameControlsManager.Shutdown(); ControlsWorld.Shutdown(); controlManager = null; EngineConsole.Shutdown(); instance = null; base.OnDestroy(); }