diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/EventInterfaceHelper.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/EventInterfaceHelper.cs index fa3a000c..24fc8303 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/EventInterfaceHelper.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/EventInterfaceHelper.cs @@ -13,6 +13,7 @@ namespace GameLogic /// public static void Init() { + GameEvent.EventMgr.Init(); RegisterEventInterface_Logic.Register(GameEvent.EventMgr); RegisterEventInterface_UI.Register(GameEvent.EventMgr); } diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/RegisterEventInterface_Logic.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/RegisterEventInterface_Logic.cs index 0ec605b6..45a26dc1 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/RegisterEventInterface_Logic.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Event/RegisterEventInterface_Logic.cs @@ -34,7 +34,6 @@ namespace GameLogic object obj = Activator.CreateInstance(type, mgr.Dispatcher); - mgr.Init(); mgr.RegWrapInterface(obj.GetType().GetInterfaces()[0]?.FullName, obj); } }