public static void update(this ITweenSequence element, float deltaTime) { if (deltaTime == 0) { return; } var directionForwards = Mathf.Sign(deltaTime) >= 0; element.setRelativeTimePassed(element.timePassed + deltaTime, directionForwards); }
public void setRelativeTimePassed(float t, bool playingForwards) => original.setRelativeTimePassed(original.duration - t, !playingForwards);