Exemple #1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.White);
            spriteBatch.Begin();

            if (activeMenu == null)
            {
                gameArea.Draw(spriteBatch);
                stats.Draw(spriteBatch);
            }
            else
            {
                activeMenu.Draw(spriteBatch);
            }

            spriteBatch.End();
            base.Draw(gameTime);
        }