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

+2 -1
View File
@@ -1,4 +1,5 @@
using System;
#nullable enable
using System;
using System.Reflection;
namespace ShrinkEventBus
+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