コード例 #1
0
        public void ExitGame(MenuElement element)
        {
            //TEMP:Clear the chunk manager - will need to save on exit
            ChunkManager.Dispose();
            GameHUDScreen.Dispose();


            ScreenManager.GetInstance().Screens.Clear();

            //NOTE: This is temporary, will need to wire the exit event to the GameManager to properly handle exiting
            DebugScreen.GetInstance().RemoveDebugListing("Graph Size: ");

            ScreenManager.GetInstance().addScreen(new BackgroundScreen());
            ScreenManager.GetInstance().addScreen(new MainMenuScreen());
        }