var that = this; //相邻块的交换、相邻的块改变点击状态、改变点击的块的形态 this.touchListener = cc.eventManager.addCustomListener("checkClick", function (event) { var box = event.getUserData(); cc.log(box.arrindex.x, box.arrindex.y); if (that.oldCell == null) { that.oldCell = box; that.oldCell.opacity = 100 } else { var o = cc.p(box.arrindex.x, box.arrindex.y); var a = cc.p(that.oldCell.arrindex.x + 1, that.oldCell.arrindex.y); var b </
三消核心代码
最新推荐文章于 2022-12-12 10:48:03 发布