Example #1
0
 public override void EvaluateAndApply(TweenPlugValueSetOptions options, Tween t, bool isRelative, DOGetter <T> getter, DOSetter <T> setter, float elapsed, T startValue, T changeValue, float duration, bool usingInversePosition, UpdateNotice updateNotice)
 {
     if (updateNotice == UpdateNotice.RewindStep)
     {
         mCounter = -1;
     }
     else if (options.Refresh(ref mCounter))
     {
         setter(getter());
     }
 }
Example #2
0
 public override float GetSpeedBasedDuration(TweenPlugValueSetOptions options, float unitsXSecond, T changeValue)
 {
     return(1.0f / unitsXSecond);
 }