private void FromTpToFocus(bool isRelease, FocusCameraParams _nextParams) { cameraType = CamType.ThirdPersonToFocusTransition; currentFocusModderParams = _nextParams; lastVerticalRot = VerticalRotation; lastHorizontalRot = HorizontalRotation; }
public void ChangePointerOfCamModderWithID(CameraModderParamsBase _newCamModderParam, string _modifierID) { if (!camTypeDict.IsOverridenWithKey(_modifierID)) { Debug.Log("No such key-id found, skipping param change... id: " + _modifierID); return; } camTypeDict.Modify(_modifierID, _newCamModderParam); if (_newCamModderParam.GetType() == typeof(ThirdPersonCameraParams)) { currentTPModderParams.Reset(); currentTPModderParams += _newCamModderParam as ThirdPersonCameraParams; } else if (_newCamModderParam.GetType() == typeof(FirstPersonCameraParams)) { currentFPModderParams.Reset(); currentFPModderParams += _newCamModderParam as FirstPersonCameraParams; } else if (_newCamModderParam.GetType() == typeof(FocusCameraParams)) { currentFocusModderParams = _newCamModderParam as FocusCameraParams; } }