提交 5c6c95b6 编写于 作者: U uhu

fix: 触发error时停止播放

上级 b03322f0
...@@ -85,6 +85,7 @@ public class AudioManager : MonoBehaviour ...@@ -85,6 +85,7 @@ public class AudioManager : MonoBehaviour
// 加载出错 // 加载出错
audio.OnError(() => audio.OnError(() =>
{ {
audio.Stop();
removeAudio(audio); removeAudio(audio);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册