cocos icon indicating copy to clipboard operation
cocos copied to clipboard

这其中有一个隐藏bug,小球在一定数量的积累下,标识球会消失了

Open ghost opened this issue 6 years ago • 1 comments

在小球数多的情况下:

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 这个函数就可以了。

ghost avatar Apr 26 '19 07:04 ghost

非常感谢!可以提个 PR

windstormeye avatar Apr 26 '19 07:04 windstormeye