Commit c523bfdc authored by Tt's avatar Tt

修改坐标

parent 4cf70cba
......@@ -2781,14 +2781,14 @@
"ctor": "Float64Array",
"array": [
0,
59.434,
0,
0,
0,
0,
0,
1,
1,
1,
0.9,
0.9,
1
]
},
......
......@@ -12,8 +12,8 @@ enum WORD_TYPE {
LINE
}
const DefaultPos = {
Word: cc.v2(0, -410),
WordBg: cc.v2(0, -150)
Word: cc.v2(0, -360),
WordBg: cc.v2(0, -90)
}
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
......@@ -151,13 +151,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
gameOver() {
this.sendData(this.wordDataList.length * 3).then(() => {
})
this.scheduleOnce(()=>{
this.onDestroy();
const middleLayer = cc.find('middleLayer');
if (!middleLayer) return;
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.saveGolds(this.wordDataList.length * 3); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayerComponent.goNextPage(); // 跳转到下一页
})
},0.5)
// pg.event.once('layer_ending_touch_replay', () => {
// this.replay();
// })
......
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