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