Skip to content

Commit

Permalink
[fix] 在注册事件之前调用初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
Kojima648 committed Jun 13, 2024
1 parent a4b1bef commit ea2efbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ internal class EventInterfaceHelper
/// </summary>
public static void Init()
{
GameEvent.EventMgr.Init();
RegisterEventInterface_Logic.Register(GameEvent.EventMgr);
RegisterEventInterface_UI.Register(GameEvent.EventMgr);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public static void Register(EventMgr mgr)

object obj = Activator.CreateInstance(type, mgr.Dispatcher);

mgr.Init();
mgr.RegWrapInterface(obj.GetType().GetInterfaces()[0]?.FullName, obj);
}
}
Expand Down

0 comments on commit ea2efbf

Please sign in to comment.