From ea2efbf58895aaf98a670f5285e959047b53dad9 Mon Sep 17 00:00:00 2001 From: chengshengfei Date: Thu, 13 Jun 2024 16:21:40 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E5=9C=A8=E6=B3=A8=E5=86=8C=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E4=B9=8B=E5=89=8D=E8=B0=83=E7=94=A8=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameScripts/HotFix/GameLogic/Event/EventInterfaceHelper.cs | 1 + .../HotFix/GameLogic/Event/RegisterEventInterface_Logic.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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); } }