参考烟雨大佬的:https://www.lfzxb.top/et-6-with-ilruntime/
ILRuntime不支持Attribute的继承操作:
1、子类不会继承基类的属性标签,所以就是热更工程中,子类也要打标签
2、比如SubAttribute继承BaseAttribute。那么热更工程中如果你用type.GetCustomAttributes(typeof(BaseAttribute), true)将会取不到。所以一定要直接type.GetCustomAttributes(typeof(SubAttribute), false)
主工程的EventSystem通过Assembly获得运行时的所有类型,但是热更工程无法获得这里的信息,所以热更工程中EventSystem通过在加载热更dll获取所有的Type类型。然后给EventSystem填充数据。