mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-06-30 07:24:26 +08:00
音乐模块添加背景音乐循环播放方法
This commit is contained in:
@@ -41,6 +41,14 @@ export class AudioManager extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
/** 循环播放背景音乐 */
|
||||
playerMusicLoop(url: string) {
|
||||
if (this._switch_music) {
|
||||
this.music.loop = true;
|
||||
this.music.load(url);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取背景音乐播放进度
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user