Esempio n. 1
0
        private void ZoomCamera()
        {
            vp_FPSCamera camera = GameManager.GetVpFPSCamera();

            originalFOV = camera.m_RenderingFieldOfView;
            camera.ToggleZoom(true);
            camera.SetFOVFromOptions(originalFOV * Settings.GetFovScalar());
        }
Esempio n. 2
0
        private void ZoomCamera()
        {
            vp_FPSCamera camera = GameManager.GetVpFPSCamera();

            originalFOV = GetFieldValue <float>(camera, "m_RenderingFieldOfView");
            camera.ToggleZoom(true);
            camera.SetFOVFromOptions(originalFOV * 0.1f);
        }