private void Awake() { if (Instance == null) { Instance = this; } m_InitialCameraFieldOfView = cameraReference.fieldOfView; m_InitialOrthographicSize = cameraReference.orthographicSize; CalculateFOVAndOrthographicSize(defaultMaxFocusingValue); EnableAndDisableThisMonoBehaviour(false); }
private void OnEnable() { Reference = (CameraMovementController)target; }