feat: 在Inspector中可直接修改起始音乐。
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user