コード例 #1
0
        protected override void OnDestroy()
        {
            DestroyTickTimer();

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

            base.OnDestroy();

            instance = null;
        }
コード例 #2
0
ファイル: GameEngineApp.cs プロジェクト: gsaone/forklift
        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();
        }