Commit a100fd06 authored by Tt's avatar Tt
parents e27a1049 dd3b47f6
...@@ -3812,7 +3812,7 @@ ...@@ -3812,7 +3812,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 152.6, "width": 148.45,
"height": 63 "height": 63
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -3898,7 +3898,7 @@ ...@@ -3898,7 +3898,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
210.81399999999996, 206.664,
0, 0,
0, 0,
0, 0,
......
...@@ -345,7 +345,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -345,7 +345,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.once('layer_ending_touch_replay', () => { pg.event.once('layer_ending_touch_replay', () => {
this.replay(); this.replay();
}) })
pg.event.emit('layer_ending_show', { coin: this.score }) const middleLayer = cc.find('middleLayer').getComponent('middleLayer');
middleLayer.saveGolds(this.score); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer.goNextPage(); // 跳转到下一页
// pg.event.emit('layer_ending_show', { coin: this.score })
} }
createLayer() { createLayer() {
......
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