feat: music callback
This commit is contained in:
@@ -29,7 +29,6 @@ namespace OCES.Audio
|
||||
// ─────────────────────────────────────────────
|
||||
|
||||
public event Action<uint> OnBeat;
|
||||
|
||||
public event Action<uint> OnBar;
|
||||
public event Action<uint> OnGrid;
|
||||
|
||||
@@ -196,10 +195,13 @@ namespace OCES.Audio
|
||||
EnumIds.RegisterAllGameState();
|
||||
|
||||
ActiveStates = new Dictionary<Type, Enum>();
|
||||
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
// ── 启动默认音乐与环境音 ──
|
||||
// 触发一次初始状态,让音乐系统从默认状态开始匹配
|
||||
//SetState(GameState.Home);
|
||||
SetState(GameState.Home);
|
||||
}
|
||||
|
||||
AudioObject ResolveSwitchContainer(AudioObject switchContainer)
|
||||
|
||||
Reference in New Issue
Block a user