예제 #1
0
 /**
  * Convenience method to add a delay to every tween in the group.
  * @param millis A delay, in milliseconds.
  * @return The group, for instruction chaining.
  */
 public TweenGroup Delay(int millis)
 {
     for (int i = 0; i < Tweens.Count; i++)
     {
         Tween tween = Tweens[i];
         tween.Delay(millis);
     }
     return(this);
 }
예제 #2
0
 /**
  * Modifies the delays of every tween in the group in order to sequence
  * them one after the other.
  * @return The group, for instruction chaining.
  */
 public TweenGroup Sequence()
 {
     for (int i = 1; i < Tweens.Count; i++)
     {
         Tween tween         = Tweens[i];
         Tween previousTween = Tweens[i - 1];
         tween.Delay(previousTween.GetDuration() + previousTween.GetDelay());
     }
     return(this);
 }