yyl
2025-12-04 1833df8b8c89d6284fc7c83de2b1620471f3ad06
125 战斗 漏看的报错提交
1个文件已修改
4 ■■■■ 已修改文件
Main/System/Battle/Sound/BattleSoundManager.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/Sound/BattleSoundManager.cs
@@ -227,7 +227,7 @@
        // 如果池为空,检查是否可以动态创建
        if (audioSourceObject == null)
        {
            BattleDebug.LogErrorError("BattleSoundManager: audioSourceObject 为空,无法创建 AudioSource");
            BattleDebug.LogError("BattleSoundManager: audioSourceObject 为空,无法创建 AudioSource");
            return null;
        }
        
@@ -237,7 +237,7 @@
        if (totalAudioSources >= MAX_AUDIO_SOURCES)
        {
            // 达到上限,不再创建,丢弃这次播放请求
            BattleDebug.LogErrorWarning($"BattleSoundManager: AudioSource 数量已达上限 {MAX_AUDIO_SOURCES},无法播放新音效");
            BattleDebug.LogError($"BattleSoundManager: AudioSource 数量已达上限 {MAX_AUDIO_SOURCES},无法播放新音效");
            return null;
        }