private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }

            m_InitialCameraFieldOfView = cameraReference.fieldOfView;
            m_InitialOrthographicSize  = cameraReference.orthographicSize;

            CalculateFOVAndOrthographicSize(defaultMaxFocusingValue);

            EnableAndDisableThisMonoBehaviour(false);
        }
Beispiel #2
0
 private void OnEnable()
 {
     Reference = (CameraMovementController)target;
 }