Commit 4ae7393e authored by Tt's avatar Tt

欢乐翻卡增加结束小迪

parent b15bf4e4
No preview for this file type
...@@ -366,6 +366,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -366,6 +366,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
showXiaodi() { showXiaodi() {
if (!this.data.npcAudioEnd) return; if (!this.data.npcAudioEnd) return;
pg.view.find(this, 'layout_xiaodi/btn_go').active = false;
this.scheduleOnce(() => {
pg.view.find(this, 'layout_xiaodi/btn_go').active = true;
}, 0.5)
pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this); pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this);
pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/txt'), this.data.npcAudioText) pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/txt'), this.data.npcAudioText)
pg.view.find(this, 'layout_xiaodi').active = true; pg.view.find(this, 'layout_xiaodi').active = true;
......
This diff is collapsed.
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