Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void setRelativeTimePassed(float t, bool playingForwards) =>
 original.setRelativeTimePassed(original.duration - t, !playingForwards);