public void SetRotation(Vector3 rotationEulerAngles, bool moveLocator, float time) { Transform transform = ClassSingleton <AdventureSceneData> .Instance.adventureCamera.camera3D.transform; Vector3 endAngles = transform.localEulerAngles + rotationEulerAngles; this.rotationAnimation = new CameraRotationAnimation(transform.localEulerAngles, endAngles, time); this.actionCameraAnimation = new Func <bool>(this.rotationAnimation.UpdateRotation); }
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; } }