public override UIAnimation_Base GetNewAnimation() { NewValues newValues = GetNewValues(); UITransformAnimation_Scale newAnimation = new UITransformAnimation_Scale(myUITransformAnimator, onCompleteAction, onUpdateAction, tweenType, newValues.newStartValue, newValues.newEndValue, newValues.newDeltaValue, newValues.newDuration, easeCurve, loopType, loopCount); return(newAnimation); }
//////////////////////////////////////// // // Scale Functions public void AddScaleAnimation(UIAnimation_Base.TweenType tweenType, Action onCompleteAction, Action <float> onUpdateAction, Vector3 startScale, Vector3 endScale, Vector3 deltaScale, float duration, AnimationCurve easeCurve, UIAnimation_Base.LoopType loopType, int loopCount) { UITransformAnimation_Scale newUIAnimationPosition = new UITransformAnimation_Scale(this, onCompleteAction, onUpdateAction, tweenType, startScale, endScale, deltaScale, duration, easeCurve, loopType, loopCount); myUIAnimationsScale.Enqueue(newUIAnimationPosition); if (myUIAnimationsScale.Count == 1) { UpdateAnimation(myUIAnimationsScale); } }