예제 #1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     backround.Draw(spriteBatch);
     foreach (MenuObject obj in objects)
     {
         obj.Draw(spriteBatch);
     }
 }
예제 #2
0
        public void Draw(SpriteBatch spriteBatch)
        {
            if (!Over)
            {
                lessHp.Draw(spriteBatch);
            }

            foreach (MenuObject obj in objects)
            {
                obj.Draw(spriteBatch);
            }

            if (Over)
            {
                spriteBatch.GraphicsDevice.Clear(Color.TransparentBlack);
                BackOver.Draw(spriteBatch);
            }
        }