restart bgm
This commit is contained in:
1 parent
03deefde2a
commit
a3fa312dba
1 file changed
+1
-1
+1
-1
@@ -2537,6 +2537,7 @@ control.prototype.playBgm = function (bgm) {
|
||||
}
|
||||
// 播放当前BGM
|
||||
core.material.bgms[bgm].volume = core.musicStatus.volume;
|
||||
core.material.bgms[bgm].currentTime = 0;
|
||||
core.material.bgms[bgm].play();
|
||||
core.musicStatus.playingBgm = bgm;
|
||||
core.musicStatus.isPlaying = true;
|
||||
@@ -2582,7 +2583,6 @@ control.prototype.resumeBgm = function () {
|
||||
}
|
||||
else
|
||||
core.playBgm(core.bgms[0]);
|
||||
core.musicStatus.isPlaying = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user