Exemple #1
0
        public Tween(LerpFunc <T> lerp, T startValue, T endValue, float duration, Ease.EaseFunc easeFunc)
        {
            _lerp     = lerp;
            _duration = duration;
            _easeFunc = easeFunc;

            CurrentValue = startValue;
            StartValue   = startValue;
            EndValue     = endValue;

            State = TweenState.Stopped;
        }
Exemple #2
0
 public Int32Tween(int startValue, int endValue, int duration, Ease.EaseFunc easeFunc) : base(MathUtils.Lerp,
                                                                                              startValue, endValue, duration, easeFunc)
 {
 }
Exemple #3
0
 public FloatTween(float startValue, float endValue, float duration, Ease.EaseFunc easeFunc) : base(
         MathUtils.Lerp, startValue, endValue, duration, easeFunc)
 {
 }
Exemple #4
0
 public DoubleTween(double startValue, double endValue, float duration, Ease.EaseFunc easeFunc) : base(
         LerpDouble, startValue, endValue, duration, easeFunc)
 {
 }
Exemple #5
0
 public Int64Tween(long startValue, long endValue, long duration, Ease.EaseFunc easeFunc) : base(MathUtils.Lerp,
                                                                                                 startValue, endValue, duration, easeFunc)
 {
 }