Commit 526f4bbe authored by Tt's avatar Tt

修改

parent f1848660
......@@ -84,10 +84,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initGame();
}
gameOver() {
pg.event.once('layer_ending_touch_replay', () => {
this.replay();
})
pg.event.emit('layer_ending_show', { coin: this.data.questions.length * 3 })
// pg.event.once('layer_ending_touch_replay', () => {
// this.replay();
// })
// pg.event.emit('layer_ending_show', { coin: this.data.questions.length * 3 })
const middleLayer = cc.find('middleLayer').getComponent('middleLayer');
middleLayer.saveGolds(this.data.questions.length * 3); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer.goNextPage(); // 跳转到下一页
}
private rightList: Array<any>;
private createCount: number;
......
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