public override UIAnimation_Base GetNewAnimation() { NewValues newValues = GetNewValues(); UITransformAnimation_Rotation newAnimation = new UITransformAnimation_Rotation(myUITransformAnimator, onCompleteAction, onUpdateAction, tweenType, newValues.newStartValue, newValues.newEndValue, newValues.newDeltaValue, newValues.newDuration, easeCurve, loopType, loopCount); return(newAnimation); }
//////////////////////////////////////// // // Rotation Functions public void AddRotationAnimation(UIAnimation_Base.TweenType tweenType, Action onCompleteAction, Action <float> onUpdateAction, Quaternion startRotation, Quaternion endRotation, Quaternion deltaRotation, float duration, AnimationCurve easeCurve, UIAnimation_Base.LoopType loopType, int loopCount) { UITransformAnimation_Rotation newUIAnimationPosition = new UITransformAnimation_Rotation(this, onCompleteAction, onUpdateAction, tweenType, startRotation, endRotation, deltaRotation, duration, easeCurve, loopType, loopCount); myUIAnimationsRotation.Enqueue(newUIAnimationPosition); }