feat: autoreg in runtime

This commit is contained in:
cneicy committed 2026-03-08 03:35:28 +08:00
1 parent 1edf2172fd
commit e0e009a12d
12 files changed
+357 -3

No files matched your search

+1 -2
View File
@@ -9,9 +9,8 @@ namespace ShrinkEventBus
{
public static class EventBus
{
public static bool EnableDebugRecord { get; set; }
#if UNITY_EDITOR
public static bool EnableDebugRecord { get; set; } = true;
public static event Action<EventBase, string, string> OnEventTriggeredForEditor;
#endif