public void Draw(SpriteBatch spriteBatch) { if (activeMenu == "main") { mainMenu.Draw(spriteBatch); } else if (activeMenu == "game") { gameMenu.Draw(spriteBatch); } }
protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); if (menuStatus) { _menu.Draw(spriteBatch); } if (levelStatus) { _level.Draw(spriteBatch); } spriteBatch.End(); base.Draw(gameTime); }