Commit 5338880d authored by yu's avatar yu

1

parent 8a82aa93
......@@ -62,6 +62,10 @@ export default class LayerBack extends cc.Component {
});
}
playVoiceRunning() {
if (!this.img_npc_voice) {
this.unschedule(this.playVoiceRunning)
return;
}
this.playVoiceCount++;
let p1 = this.img_npc_voice.getChildByName('p1')
let p2 = this.img_npc_voice.getChildByName('p2')
......
......@@ -31,6 +31,10 @@ export default class ImgVoice extends cc.Component {
this.schedule(this.playVoiceRunning, 0.3)
}
playVoiceRunning() {
if (!this.img_npc_voice) {
this.unschedule(this.playVoiceRunning)
return;
}
this.playVoiceCount++;
let p1 = this.img_npc_voice.getChildByName('p1')
let p2 = this.img_npc_voice.getChildByName('p2')
......
......@@ -113,6 +113,10 @@ export default class LayerRecord extends cc.Component {
this.schedule(this.playVoiceRunning, 0.3)
}
playVoiceRunning() {
if (!this.layout_record) {
this.unschedule(this.playVoiceRunning)
return;
}
this.playVoiceCount++;
let btn_play = pg.view.find(this.layout_record, 'btn_play');
let p0 = btn_play.getChildByName('p0')
......
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