Exemple #1
0
        private void ExitGame()
        {
            state = AppState.Exiting;
            menuOrganizer = null;
            graphics = null;
            spriteBatch = null;

            this.Exit();
        }
Exemple #2
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     DrawStuff.SpriteBatch = spriteBatch;
     menuOrganizer = new MenuOrganizer();
     CreateMenus();
 }