public void Disable(CameraParams cameraParams) { if (IsEnabled) { cameraParams.SetParams (savedParams); IsEnabled = false; } }
public void UpdateParams(CameraParams cameraParams) { if (IsInterpolating) { interpolator.Update (Time.deltaTime); cameraParams.SetParams (interpolator.CurrentParams); sourceParams.SetParams (cameraParams); } }
public void Enable(CameraParams cameraParams) { if (!IsEnabled) { savedParams = new CameraParams(cameraParams); cameraParams.SetParams (param); IsEnabled = true; } }