[]有没有js版本Tween clear相关的demo??
按照(https://ask.layabox.com/question/4702)操作后不管用,我的写法如下leftToRight1(){
Laya.Tween.clear(this.leftToRightTween1);
this.leftToRightTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2))
}
leftToRight2(){
Laya.Tween.clear(this.leftToRightTween2);
this.leftToRightTween2 = Laya.Tween.to(this.spFetch, { rotation: -10 }, 3000,null, Laya.Handler.create(this, this.leftToRight1))
}
报错如下
Laya.Tween.clear(this.leftToRightTween1);
this.leftToRightTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2))
}
leftToRight2(){
Laya.Tween.clear(this.leftToRightTween2);
this.leftToRightTween2 = Laya.Tween.to(this.spFetch, { rotation: -10 }, 3000,null, Laya.Handler.create(this, this.leftToRight1))
}
报错如下
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
182*****369
赞同来自: