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