refactor: use PlayDelayed API for audio delay and add Stop by ID support

- Replace PlayAfterDelay coroutine with AudioSource.PlayDelayed
- Add Stop(audioId) public API
- Add startWithMusic toggle
- Clean up namespace and debug macros
This commit is contained in:
2026-04-17 11:20:17 +08:00
parent 0fdd76022d
commit 63c5f6766c
10 changed files with 291 additions and 36 deletions
@@ -66,6 +66,7 @@ public static class AudioObjectDefinitions
{ "Chinese Number 08", 49 },
{ "Chinese Number 09", 49 },
{ "Chinese Number 10", 49 },
{ "Japanese Number 02", 51 },
{ "Bar", 52 },
{ "Beat", 53 },
{ "Grid", 54 },
@@ -104,6 +105,7 @@ public static class AudioObjectDefinitions
{ "au_sfx_ui_button_corePlay_clear_cloud2", 70 },
{ "au_sfx_ui_button_corePlay_clear_cloud3", 70 },
{ "sfx_notice_test", 71 },
{ "Spanish Number 03", 73 },
};
public static readonly HashSet<string> AmbiguousNames = new()