/// <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); stg = new SuperTownGame(this, _graphics, _spriteBatch); }
public MenuState(SuperTownGame stg) : base(stg, "MenuState") { Start(); ChangeState += stg.GameState.Show; }
public MenuState(SuperTownGame game) : base(game, "menu") { ChangeState += game.GameState.Show; Start(); }
public PausedState(SuperTownGame game) : base(game, "pause") { }
public GameState(SuperTownGame game) : base(game, "game") { }