|
@@ -73,11 +73,13 @@ export class sound_text_content extends Component {
|
|
|
|
|
|
}
|
|
|
|
|
|
- onAudioEnded(){
|
|
|
+ onAudioEnded(isDispatchEvent:boolean=true){
|
|
|
this.node.off(AudioSource.EventType.STARTED);
|
|
|
this.node.off(AudioSource.EventType.ENDED);
|
|
|
this.node.active = false;
|
|
|
- ClientEvent.dispatchEvent(config.EventRun.WIDGET_FINISH,this.mWidgetId)
|
|
|
+ if(isDispatchEvent) {
|
|
|
+ ClientEvent.dispatchEvent(config.EventRun.WIDGET_FINISH,this.mWidgetId)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|