public void Dispose() { mainGameScreen = null; debugScreen = null; options = null; titleScreen = null; }
public ScreenManager() { splashScreen = new SplashIntroScreen(); mainGameScreen = new MainGameScreen(); titleScreen = new TitleScreen(); options = new OptionsScreen(); debugScreen = new DebugInfo(); MainGame.CustomContentManager = new Graphics.ContentManager(); CurrentScreen = GameScreens.SPLASH; LoadContent(); }