Ejemplo n.º 1
0
        public override void Draw(GameTime gameTime, float elapsedSeconds, float totalSeconds)
        {
            bool drawDebug = InputFunctions.DrawDebug(Keyboard.GetState());

            DrawLayer(GameCamera, EntityType.Game, drawDebug, elapsedSeconds, totalSeconds);
            DrawLayer(null, EntityType.UI, drawDebug, elapsedSeconds, totalSeconds);
            DrawLayer(GameCamera, EntityType.OverlayLayer, drawDebug, elapsedSeconds, totalSeconds);

#if DEBUG
            if (drawDebug)
            {
                this.GameCamera.Debug.Draw(gameTime, spriteBatch, new Vector2(0, 0));
            }
#endif
        }