public eEventTriggerReturn Trigger(StateMachineComponent stateMachine) { AnimatedCamera camera = _camera; if (camera != null) { AnimatedCamera.Animation animation = new AnimatedCamera.Animation(_snapshot.GetComponent().GetState()); camera.SetAnimation(animation, _blendEaseType, _blendTime); } return(eEventTriggerReturn.EventFinished); }
public eEventTriggerReturn Trigger(StateMachineComponent stateMachine) { AnimatedCamera camera = _camera; if (camera != null) { AnimatedCamera.Animation animation = new AnimatedCamera.Animation(); animation._states = new AnimatedCameraState[_animationSnapshots.Length]; for (int i = 0; i < _animationSnapshots.Length; i++) { animation._states[i] = _animationSnapshots[i].GetComponent().GetState(); } animation._duration = _animationDuration; animation._easeType = _animationEaseType; animation._wrapMode = _animationWrapMode; camera.SetAnimation(animation, _blendEaseType, _blendTime); } return(eEventTriggerReturn.EventFinished); }