Example #1
0
 public void Start()
 {
     if (Tweens.Count > 0)
     {
         CurrentAnimation = Tweens.Dequeue();
         CurrentAnimation.Play();
         CurrentAnimation.AnimationEnd += Start;
     }
 }
Example #2
0
 public void Play()
 {
     CurrentAnimation = Tweens.Peek();
     CurrentAnimation.Play();
 }
Example #3
0
 public TweenObject(TweenData tweenData)
 {
     Tweens = new Queue <TweenData>();
     Tweens.Enqueue(tweenData);
 }
Example #4
0
 public void AddAnimation(TweenData tweenData)
 {
     Tweens.Enqueue(tweenData);
 }