Commit 3cbc3878 authored by Tt's avatar Tt

处理bug

parent c54a1d89
This diff is collapsed.
...@@ -210,14 +210,18 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -210,14 +210,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 展示点击效果 // 展示点击效果
async showRecordWait() { async showRecordWait() {
pg.view.find(this.btn_record, 'bg/bg').active = false;
pg.view.find(this.btn_record, 'bg/ani').active = true; pg.view.find(this.btn_record, 'bg/ani').active = true;
} }
async showRecordWaitEnd() { async showRecordWaitEnd() {
pg.view.find(this.btn_record, 'bg/bg').active = true;
pg.view.find(this.btn_record, 'bg/ani').active = false; pg.view.find(this.btn_record, 'bg/ani').active = false;
} }
showRecordHide() { showRecordHide() {
this.showRecordWaitEnd(); this.showRecordWaitEnd();
this.readyNext = false;
this.readyTime = 999999;
this.img_npc.active = false; this.img_npc.active = false;
this.showLastNext = 3;// 3秒显示时间 this.showLastNext = 3;// 3秒显示时间
let img_voice = pg.view.find(this.btn_record, "img_voice"); let img_voice = pg.view.find(this.btn_record, "img_voice");
...@@ -397,6 +401,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -397,6 +401,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.readyNext = false; this.readyNext = false;
this.readyTime = 999999; this.readyTime = 999999;
this.showNpcAudioPlayEnd(); this.showNpcAudioPlayEnd();
this.CurrentData.npcPlay = false
this.showNpcAudioPlay().then(() => { this.showNpcAudioPlay().then(() => {
this.showNpcAudioPlayEnd(); this.showNpcAudioPlayEnd();
this.readyNext = true; this.readyNext = true;
......
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