public DebugInfoComponent(DagonGame game, Unit player)
     : base(game)
 {
     _spriteBatch = new SpriteBatch(game.GraphicsDevice);
     _font = game.Content.Load<SpriteFont>("arial");
     _unit = player;
     _fps = 0;
     _frameCounter = 0;
 }
        public FirstPersonCamera(DagonGame game, Unit unit)
        {
            _unit = unit;

            _projection = Matrix.CreatePerspectiveFieldOfView(
                game.Settings.FieldOfView,
                game.GraphicsDevice.Viewport.AspectRatio,
                0.1f,
                game.Settings.RangeOfVisibility);
        }