多轮审查和修复

This commit is contained in:
2026-05-12 15:34:08 +08:00
parent f55d2a57c3
commit ebbbb7332e
805 changed files with 838724 additions and 1905 deletions

View File

@@ -5,7 +5,7 @@ namespace BaseGames.Core
/// <summary>
/// IAudioService 的空实现,作为兜底防止 NullReferenceException。
/// 在 GameServiceRegistrar 中作为默认音频服务注册;
/// Phase 2 Audio 模块实现完整后替换
/// AudioManager 初始化后会覆盖此实现
/// </summary>
public sealed class NullAudioService : IAudioService
{
@@ -18,6 +18,9 @@ namespace BaseGames.Core
public void PlaySFX(string key)
=> Debug.LogWarning($"[NullAudioService] PlaySFX({key}) — 音频系统未初始化。");
public void PlaySFXAtPosition(AudioClip clip, Vector2 position, float volumeScale = 1f)
=> Debug.LogWarning($"[NullAudioService] PlaySFXAtPosition({clip?.name}) — 音频系统未初始化。");
public void SetVolume(string group, float normalizedVolume)
=> Debug.LogWarning($"[NullAudioService] SetVolume({group}, {normalizedVolume}) — 音频系统未初始化。");
}