Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 ITween IMotionProgressBar.Tween(float value)
 {
     return(TweenMotion.From(curve, ProgressHelper.CaculateDuration(value, oneUnitValue, percentDurationIncrease, duration)));
 }