Commit c523bfdc authored by Tt's avatar Tt

修改坐标

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