public override void Draw(GameTime gameTime, SpriteBatch spriteBatch) { switch (state) { case (brawlgamestate.settings): boxingManager.Draw(gameTime, spriteBatch); settingsManager.Draw(spriteBatch, font); break; case (brawlgamestate.playerselect): boxingManager.Draw(gameTime, spriteBatch); playerSelectManager.Draw(spriteBatch, font); break; case (brawlgamestate.loadout): boxingManager.Draw(gameTime, spriteBatch); loadoutManager.Draw(spriteBatch); break; case (brawlgamestate.brawl): boxingManager.Draw(gameTime, spriteBatch); break; case (brawlgamestate.stats): boxingManager.Draw(gameTime, spriteBatch); break; } base.Draw(gameTime, spriteBatch); }
// Updates current state public void Draw(GameTime gameTime, SpriteBatch spriteBatch) { if (state == GameState.Menu) { Menu.Draw(spriteBatch); } else if (state == GameState.Auction) { Auction.Draw(gameTime, spriteBatch); } else if (state == GameState.Boxing) { Boxing.Draw(gameTime, spriteBatch); } }