Commit e744fbbc authored by 李维's avatar 李维

dev commit

parent 9e374f4c
......@@ -236,7 +236,7 @@ export class PlayComponent implements OnInit, OnDestroy {
endGame(){
let audioPlayer = this.g_cartoon.getCartoonElement("bg-short-audio")
if(audioPlayer.isPlaying){
if(audioPlayer && audioPlayer.isPlaying){
audioPlayer.playIcon.ref.visible = true
audioPlayer.pauseIcon.ref.visible = false
audioPlayer.audio.pause()
......
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