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