public override void Draw(GameTime gameTime) { spriteBatch.Begin(); _gui.Draw(gameTime, spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
/// <summary> /// Draw all visible entities and the gui (after entities) /// </summary> /// <param name="gameTime"></param> /// <param name="spriteBatch"></param> public override void Draw(GameTime gameTime, SpriteBatch spriteBatch) { base.Draw(gameTime, spriteBatch); if (!_useOtherBatchForGui) { _guiManager.Draw(gameTime, spriteBatch); } }