Esempio n. 1
0
        protected override void OnDestroy()
        {
            DestroyTickTimer();

            EntitySystemWorld.Shutdown();
            ControlsWorld.Shutdown();

            base.OnDestroy();

            instance = null;
        }
Esempio n. 2
0
        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();
        }