//引用命名空间
using DG.Tweening;
// 初始化一个sequence
Sequence sequence = DOTween.Sequence();
//添加动画
sequence.Append(动画对象.DOScale(Vector3.one, .5f));
//添加一个间隔时间(等待0.2秒)
sequence.AppendInterval(0.2f);
sequence.Append(动画对象.DOScale(Vector3.one, .5f));
//在某个时间点插入动画
sequence.Insert(0f, 动画对象 .DOScale(Vector3.one, .3f) .SetEase(Ease.InOutBounce););
//设置补间
sequence.OnComplete(() =>
{
//回调函数
});