Esempio n. 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;
     }
 }
Esempio n. 2
0
 public void StartAnimation(string startStateName, string endStateName)
 {
     this.cameraAnimation       = new AdventureCameraAnimation(this.cameraAnimator, startStateName, endStateName);
     this.actionCameraAnimation = new Func <bool>(this.cameraAnimation.UpdateAnimation);
 }