|
@@ -77,7 +77,9 @@ export class sound_item extends base_res {
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
- this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
|
|
|
+ if(this.btn_play) {
|
|
|
+ this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -86,7 +88,9 @@ export class sound_item extends base_res {
|
|
|
}
|
|
|
|
|
|
onAudioEnded(){
|
|
|
- this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
|
|
|
+ if(this.btn_play) {
|
|
|
+ this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|