public override UIAnimation_Base GetNewAnimation() { NewValues newValues = GetNewValues(); CanvasGroupAnimation_Alpha newAnimation = new CanvasGroupAnimation_Alpha(canvasGroupAnimator, onCompleteAction, tweenType, newValues.newStartValue, newValues.newEndValue, newValues.newDeltaValue, newValues.newDuration, easeCurve, loopType, loopCount); return(newAnimation); }
//////////////////////////////////////// // // CanvasGroupAnimator Functions protected void AddAlphaAnimation(UIAnimation_Base.TweenType tweenType, Action onCompleteAction, float startFillPercent, float endFillPercent, float deltaFillPercent, float duration, AnimationCurve easeCurve, UIAnimation_Base.LoopType loopType, int loopCount) { CanvasGroupAnimation_Alpha newCanvasGroupAnimation_Alpha = new CanvasGroupAnimation_Alpha(this, onCompleteAction, tweenType, startFillPercent, endFillPercent, deltaFillPercent, duration, easeCurve, loopType, loopCount); myCanvasGroupAnimationsAlpha.Enqueue(newCanvasGroupAnimation_Alpha); }