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