Commit d111e9d4 authored by yu's avatar yu

1

parent 92f79ad4
This diff is collapsed.
......@@ -315,6 +315,10 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
return;
}
if (itemBg && itemBg.sortId == data.id) {
target.off(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this);
target.off(cc.Node.EventType.TOUCH_MOVE, this.onItemTouchMove, this);
target.off(cc.Node.EventType.TOUCH_END, this.onItemTouchEnd, this);
target.off(cc.Node.EventType.TOUCH_CANCEL, this.onItemTouchCancel, this);
// let rightBg0 = cc.find("rightBg0", itemBg);
// let rightBg1 = cc.find("rightBg1", itemBg);
// rightBg0.active = true;
......@@ -409,7 +413,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
// pg.event.emit('layer_ending_show', { coin: this.coin })
const midd = cc.find('middleLayer');
if (!midd) return this.log("no middleLayer");
this.sendData(this.coin).then(()=>{
this.sendData(this.coin).then(() => {
let middleLayer = midd.getComponent('middleLayer');
middleLayer.saveGolds(this.coin); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer.goNextPage(); // 跳转到下一页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment