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