noteBox:function(){
return this.node.getBoundingBoxToWorld();
},
if(cc.rectIntersectsRect(player.node.getBoundingBoxToWorld(),this.noteBox())){
cc.audioEngine.playEffect(this.dieAudio,false);
cc.director.loadScene('OverScene');
//cc.log('碰撞');
}
noteBox:function(){
return this.node.getBoundingBoxToWorld();
},
if(cc.rectIntersectsRect(player.node.getBoundingBoxToWorld(),this.noteBox())){
cc.audioEngine.playEffect(this.dieAudio,false);
cc.director.loadScene('OverScene');
//cc.log('碰撞');
}
2225

被折叠的 条评论
为什么被折叠?