예제 #1
0
        public override void OnExit(GameTime gameTime)
        {
            MouseEventDispatcher.OnMousePress    -= OnMP;
            DevConsole.OnNewCommand              -= DevConsole_OnNewCommand;
            KeyboardEventDispatcher.OnKeyPressed -= OnKeyPressed;
            DevConsole.Deactivate();
            if (game.LoadScreen.LoadFile == null)
            {
                BuildELDFromWidgets();
                game.LoadScreen.LoadData = eld;
            }

            menuPresets.Dispose();
            foreach (var w in widgets)
            {
                w.Dispose();
            }
            wr.Dispose();

            // Clear Init Info
            schemes.Clear();
            schemes = null;
        }