public void MotionUp( Vector3 defaultScale, RectTransform affectObject) { DisposeDown(); var tween = TweenMotion.From(curveUp, durationUp); DisposeUp(); _disposableUp = Tweener.Play(affectObject.localScale, defaultScale, tween, UnuseScaleScheduler) .SubscribeToLocalScale(affectObject) .AddTo(affectObject); }
public void MotionDown( Vector3 defaultScale, RectTransform affectObject) { DisposeUp(); var tween = TweenMotion.From(curveDown, durationDown); DisposeDown(); _disposableDown = Tweener.Play(affectObject.localScale, new Vector3(defaultScale.x * PercentScaleDown.x, defaultScale.y * PercentScaleDown.y), tween, UnuseScaleScheduler) .SubscribeToLocalScale(affectObject) .AddTo(affectObject); }
ITween IMotionProgressBar.Tween(float value) { return(TweenMotion.From(curve, ProgressHelper.CaculateDuration(value, oneUnitValue, percentDurationIncrease, duration))); }