feat: 在Inspector中可直接修改起始音乐。

This commit is contained in:
2026-05-08 16:40:26 +08:00
parent b8e3071376
commit a29b56a65e
@@ -11,6 +11,7 @@ namespace OCES.Audio
{
public static AudioSystem Instance { get; private set; }
public bool startWithMusic;
public Parameters.GameState startMusicWith;
public ConsoleLogLevel logLevel;
// ReSharper disable once MemberCanBePrivate.Global
@@ -341,7 +342,7 @@ namespace OCES.Audio
// 触发一次初始状态,让音乐系统从默认状态开始匹配
if (this.startWithMusic)
{
SetState(Parameters.GameState.Home);
SetState(this.startMusicWith);
}
}