//吸引范围 cc.Class({ extends: cc.Component, properties: { // foo: { // // ATTRIBUTES: // default: null, // The default value will be used only when the component attaching // // to a node for the first time // type: cc.SpriteFrame, // optional, default is typeof default // serializable: true, // optional, default is true // }, // bar: { // get () { // return this._bar; // }, // set (value) { // this._bar = value; // } // }, }, // LIFE-CYCLE CALLBACKS: onLoad () { cc.director.getCollisionManager().enabled=true; cc.director.getCollisionManager().enabledDebugDraw = false; }, start () { }, onCollisionEnter:function(other,self){ if (!Module.isCollision || other.tag == -1) return; // if (other.node.group == 'fishing'){ // var leve = other.tag; //获取鱼的种类 (根据鱼的品级判断多少钱) // this.addFishing(leve); // Module.fishingNum += window.Utils.getFishingWeight(leve); // Module.gameObj.setFishingLabel(); // other.node.removeFromParent(); // Module.nonceFishingArr.push(leve); // cc.log("fishing----: ", other.node.y); // cc.log("self----: ", self.node.y); // return ; // } }, // update (dt) {}, });