예제 #1
0
        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);
        }
예제 #2
0
 public void setRelativeTimePassed(float t, bool playingForwards) =>
 original.setRelativeTimePassed(original.duration - t, !playingForwards);