mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-07 01:01:09 +08:00
修复背景音乐关闭时,当前音乐未关问题
This commit is contained in:
@@ -165,9 +165,7 @@ export class AudioMusic extends Node {
|
||||
|
||||
/** 停止当前音乐与音效的播放 */
|
||||
stop(): void {
|
||||
if (this.getSwitch() && this._ae.playing) {
|
||||
this._ae.stop();
|
||||
}
|
||||
if (this._ae.playing) this._ae.stop();
|
||||
}
|
||||
|
||||
/** 释放当前背景音乐资源 */
|
||||
|
||||
Reference in New Issue
Block a user