Example #1
0
        public override void EvaluateAndApply(TWeenPlugNoneOptions options, Tween t, bool isRelative, DOGetter <T> getter, DOSetter <T> setter, float elapsed, T startValue, T changeValue, float duration, bool usingInversePosition, UpdateNotice updateNotice)
        {
            var curVal = getter();

            if (!curVal.Equals(startValue))
            {
                setter(startValue);
            }
        }
Example #2
0
 public override float GetSpeedBasedDuration(TWeenPlugNoneOptions options, float unitsXSecond, T changeValue)
 {
     return(1.0f / unitsXSecond);
 }