Esempio n. 1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (activeMenu == "main")
     {
         mainMenu.Draw(spriteBatch);
     }
     else if (activeMenu == "game")
     {
         gameMenu.Draw(spriteBatch);
     }
 }
Esempio n. 2
0
        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);
        }