protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); startScreen = new StartScreen(this, spriteBatch, Content.Load<SpriteFont>("Fonts/menuFont")); Components.Add(startScreen); startScreen.Hide(); actionScreen = new ActionScreen(this, spriteBatch); Components.Add(actionScreen); actionScreen.LoadContent(Content); actionScreen.Hide(); activeScreen = startScreen; activeScreen.Show(); }
protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); startScreen = new StartScreen(this, spriteBatch, Content.Load <SpriteFont>("Fonts/menuFont")); Components.Add(startScreen); startScreen.Hide(); actionScreen = new ActionScreen(this, spriteBatch); Components.Add(actionScreen); actionScreen.LoadContent(Content); actionScreen.Hide(); activeScreen = startScreen; activeScreen.Show(); }