diff --git a/assets/module/common/GameComponent.ts b/assets/module/common/GameComponent.ts index f2a030f..aefafc9 100644 --- a/assets/module/common/GameComponent.ts +++ b/assets/module/common/GameComponent.ts @@ -309,7 +309,7 @@ export class GameComponent extends Component { * @param url 资源地址 * @param params 音效播放参数 */ - async playEffect(url: string, params?: IAudioParams): Promise { + playEffect(url: string, params?: IAudioParams): Promise { return new Promise(async (resolve, reject) => { // 音效播放完,关闭正在播放状态的音乐效果 if (params == null) {