let cleanAnimation = (target, onEvtFinish)=> {
let timeLine = new TimeLine();
timeLine.addLabel("hide1", 0).to(target, {alpha: 0}, 100)
.addLabel("show1", 100).to(target, {alpha: 100}, 100)
.addLabel("hide2", 200).to(target, {alpha: 0}, 100)
.addLabel("show2", 300).to(target, {alpha: 100}, 100)
if (onEvtFinish != null) {
timeLine.on(Laya.Event.COMPLETE, this, onEvtFinish);
}
timeLine.play(0, false);
};
LayaBox动画队列
最新推荐文章于 2022-08-08 12:28:21 发布