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); } }
public override float GetSpeedBasedDuration(TWeenPlugNoneOptions options, float unitsXSecond, T changeValue) { return(1.0f / unitsXSecond); }