示例#1
0
 public virtual void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (Visible)
     {
         BackgroundLayer.Draw(gameTime, spriteBatch);
         ForegroundLayer.Draw(gameTime, spriteBatch);
         UILayer.Draw(gameTime, spriteBatch);
     }
 }
示例#2
0
 protected override void Draw(GameTime gameTime)
 {
     GraphicsDevice.Clear(Color.CornflowerBlue);
     uilayer.Draw(gameTime, spriteBatch);
 }