|
@@ -48,7 +48,6 @@ export class sound_text_content extends Component {
|
|
|
}
|
|
|
|
|
|
onPlaySound(){
|
|
|
- this.getAudioSource().stop()
|
|
|
this.node.off(AudioSource.EventType.STARTED);
|
|
|
this.node.off(AudioSource.EventType.ENDED);
|
|
|
this.node.on(AudioSource.EventType.STARTED, this.onAudioStarted, this);
|
|
@@ -80,6 +79,8 @@ export class sound_text_content extends Component {
|
|
|
this.node.off(AudioSource.EventType.STARTED);
|
|
|
this.node.off(AudioSource.EventType.ENDED);
|
|
|
this.node.active = false;
|
|
|
+ this.getAudioSource().stop()
|
|
|
+ this.getAudioSource().clip = null;
|
|
|
ClientEvent.dispatchEvent(config.EventRun.WIDGET_FINISH,this.mWidgetId)
|
|
|
}
|
|
|
}
|