Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using DG.Tweening;
- using System.Collections.Generic;
- public class TweenStackHandler
- {
- public bool nowPlaying=false;
- Queue<Sequence> queue = new Queue<Sequence>();
- public void doAct() {
- nowPlaying = false;
- if (queue.Count > 0)
- {
- queue.Dequeue().AppendCallback(doAct).Play();
- nowPlaying = true;
- }
- }
- public void add(Sequence sequance){
- queue.Enqueue(sequance);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement