/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); mTitleScreen = new TitleScreen(this.Content, new EventHandler(TitleScreenEvent)); mMainGameScreen = new MainGameScreen(this.Content); mCurrentScreen = mTitleScreen; // TODO: use this.Content to load your game content here }
//This event is fired when the Title screen is returning control back to the main game class public void TitleScreenEvent(object obj, EventArgs e) { //Switch to the controller detect screen, the Title screen is finished being displayed mCurrentScreen = mMainGameScreen; }