cocos
cocos copied to clipboard
这其中有一个隐藏bug,小球在一定数量的积累下,标识球会消失了
在小球数多的情况下:
groundSprite.js 先发生了碰撞 this.game.isFirstBoll = true;
this.schedule(function(){
this.indexBoll.enabled = false;
this.isFirstBoll = false;
}.bind(this), 0.08 * (this.allBolls - 1), 1); // 延时比碰撞晚
临时办法:发生碰撞时 unschedule 这个函数就可以了。
非常感谢!可以提个 PR