我想做一个大摆锤一样 的效果 实在不知道怎么弄 就写了互相调用的代码 然后就出现以上的警告
有大佬给个大摆锤的解决方案吗?请问一下为什么报这个warn
start () {
this.hammer_leftswing();
},
hammer_leftswing() {
cc.tween(this.node)
.by(4, {angle: -180 })
.start();
setTimeout(function () {
this.hammer_rightswing();
}.bind(this), 4000);
},
hammer_rightswing() {
cc.tween(this.node)
.by(4, { angle: 180 })
.start();
setTimeout(function () {
this.hammer_leftswing();
}.bind(this), 4000);
},