public MenuEngine(CoreEngine g) { coreEngine = g; MenuScreen.loadButtonTextures(g); titleMenu = new TitleScreen(this, g); mainMenu = new MainMenuScreen(this, g); singlePlayerMenu = new SinglePlayerScreen(this, g); botNumberMenu = new BotNumberMenuScreen(this, g); splitScreenMenu = new SplitScreen(this, g); pauseMenu = new PauseMenu(this, g); loadScreen = new LoadScreen(this, g); pauseMenu = new PauseMenu(this, g); /* optionsMenu = new OptionsMenuScreen(this, g); */ currentMenu = titleMenu; }
public void Update(GameTime gameTime) { currentMenu = currentMenu.Update(gameTime); }