Пример #1
0
 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;
     }
 }
Пример #2
0
 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);
 }