dotween 播放动画队列,可循环
挺方便的
void Move() { //建立队列 Sequence quence = DOTween.Sequence(); //添加第一个动画 quence.Append(transform.DOLocalMove(new Vector2(transform.localPosition.x, -1), waitTime)); //延迟2秒 quence.AppendInterval(2); //添加第二个动画 quence.Append(transform.DOLocalMove(new Vector2(transform.localPosition.x, 0), waitTime)); //延迟2秒 quence.AppendInterval(2); //设置循环-1无限 quence.SetLoops(-1); }