public void Reset() { this.cameraAnimator.transform.parent = this.adventureSceneRootTransform; this.fieldOfViewAnimation = null; this.moveAnimation = null; this.rotationAnimation = null; this.cameraAnimation = null; this.actionCameraAnimation = null; if (null != this.cameraAnimator) { this.cameraAnimator.runtimeAnimatorController = null; } }
public void SetFieldOfView(float fov, float time) { this.fieldOfViewAnimation = new CameraFieldOfViewAnimation(ClassSingleton <AdventureSceneData> .Instance.adventureCamera.camera3D.fieldOfView, fov, time); this.actionCameraAnimation = new Func <bool>(this.fieldOfViewAnimation.UpdateFOV); }