コード例 #1
0
        private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }

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

            CalculateFOVAndOrthographicSize(defaultMaxFocusingValue);

            EnableAndDisableThisMonoBehaviour(false);
        }
コード例 #2
0
 private void OnEnable()
 {
     Reference = (CameraMovementController)target;
 }