Commit 98df06b9 authored by Tt's avatar Tt

1

parent 39397848
...@@ -573,7 +573,7 @@ cc.Class({ ...@@ -573,7 +573,7 @@ cc.Class({
pg.audio.playAudioByUrlCall(this._stageData.sound).then((id) => { pg.audio.playAudioByUrlCall(this._stageData.sound).then((id) => {
audioFinished = true; audioFinished = true;
let time = cc.audioEngine.getDuration(id); let time = cc.audioEngine.getDuration(id);
this.showSliderAction(time).then(() => { this.showSliderAction(1).then(() => {
pg.audio.playAudioByUrlCall(this._stageData.sound, () => { pg.audio.playAudioByUrlCall(this._stageData.sound, () => {
if (aniFinished && audioFinished) { if (aniFinished && audioFinished) {
this._playing = false; this._playing = false;
...@@ -599,7 +599,7 @@ cc.Class({ ...@@ -599,7 +599,7 @@ cc.Class({
pg.audio.playAudioByUrlCall(this._stageData.sound).then((id) => { pg.audio.playAudioByUrlCall(this._stageData.sound).then((id) => {
audioFinished = true; audioFinished = true;
let time = cc.audioEngine.getDuration(id); let time = cc.audioEngine.getDuration(id);
this.showSliderAction(time).then(() => { this.showSliderAction(1).then(() => {
pg.audio.playAudioByUrlCall(this._stageData.sound, () => { pg.audio.playAudioByUrlCall(this._stageData.sound, () => {
if (aniFinished && audioFinished) { if (aniFinished && audioFinished) {
this._playing = false; this._playing = false;
...@@ -982,7 +982,7 @@ cc.Class({ ...@@ -982,7 +982,7 @@ cc.Class({
}, },
hideRestartBtn() { hideRestartBtn() {
console.log('hideRestartBtn'); console.log('hideRestartBtn op50');
const btn = cc.find('Canvas/btn_replay'); const btn = cc.find('Canvas/btn_replay');
if (!btn.canClick) { if (!btn.canClick) {
return; return;
......
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