大炮英雄Cocos Creator实现GunHero //碰撞监听脚本 cc.Class({ extends: cc.Component, properties: { }, onLoad () { }, onDestroy () { }, onBeginContact ( contact, selfCollider, otherCollider){ if(selfCollider.tag == 0 && otherCollider.tag == 0){