Commit aebd0f62 authored by yu's avatar yu

1

parent 5c7e4839
{
"ver": "1.1.0",
"uuid": "675c915c-bf9b-4f5e-9ed2-3ce69214bfef",
"subMetas": {}
}
\ No newline at end of file
......@@ -1833,7 +1833,7 @@
"_lineHeight": 100,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "48969b30-fcda-4b40-958a-a59150c71e03"
"__uuid__": "675c915c-bf9b-4f5e-9ed2-3ce69214bfef"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
......@@ -2094,7 +2094,7 @@
"_lineHeight": 85,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "48969b30-fcda-4b40-958a-a59150c71e03"
"__uuid__": "675c915c-bf9b-4f5e-9ed2-3ce69214bfef"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
......
......@@ -61,7 +61,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playOpAudio();
})
pg.event.emit('npc_layer_back_init', this.data)
pg.event.on('layer_ending_touch_replay', () => {
this.replay();
})
......@@ -166,6 +166,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
item.on(cc.Node.EventType.TOUCH_END, this.onItem, this);
item.active = true;
item.parent = this.layout_option;
this.paopaoAction(item);
})
cc.tween(this.layout_topic).to(0.5, { y: this.topic }).start();
......@@ -187,11 +188,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.emit("img_voice_play_voice_end");
})
}
private async paopaoAction(target) {
await pg.time.delay(Math.random() * 1);
cc.tween(target).repeatForever(
cc.tween().to(1.5 + Math.random() * 2, { y: 10 }).to(1, { y: -10 })
).start();
}
private onItem(e) {
if (!this.touch) return;
this.touch = false;
let target = e.target;
cc.Tween.stopAllByTarget(target);
let data = target.data;
if (!data.right) {
this.playLocalAudio("error");
......@@ -209,7 +217,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
bg.active = false;
pp.active = true;
cc.tween(pp).to(0.7, { opacity: 0 }).call(()=>{
cc.tween(pp).to(0.7, { opacity: 0 }).call(() => {
pg.event.emit("layer_coin_show_coin", 3);
}).start();
......
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