private playSoundLead() {
if (!this.soundMan || this.playBoo) {
this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1));
this._btnTimeOutPlay.visible = true;
this._btnPlaySound.visible = false;
this.playBoo = false;
return;
}
if (!this._btnTimeOutPlay.visible) {
this._btnTimeOutPlay.visible = true;
this._btnPlaySound.visible = false;
console.log(this.soundMan.resume);
if (this.playBoo) {
this.soundMan.play();
this.playBoo = false;
}else {
this.soundMan.resume();
}
}else {
this._btnTimeOutPlay.visible = false;
this._btnPlaySound.visible = true;
if (!this.playBoo) {
this.soundMan.pause();
} else {
}
}
}