示例#1
0
        public static void InitInEditor()
        {
            string className = "AppHotFixConfig";

            try
            {
                ILRuntimeAppEditor app = ILRuntimeAppEditor.GetInstance();

                System.Type   type   = System.Type.GetType(className);
                IHotFixConfig config = type.Assembly.CreateInstance(className) as IHotFixConfig;
                config.ToString();

                ILRuntimeHotFix hotFix = new ILRuntimeHotFix(app);
                app.SetHotFixSetting(hotFix, config);
            }
            catch (System.Exception _)
            {
                UnityEngine.Debug.LogError("未定义必需的热更配置 AppHotFixConfig,或热更配置对象为实现 IILuntimeHotFixConfig 接口");
            }
        }
示例#2
0
 public void SetHotFixSetting(ILRuntimeHotFix value, IHotFixConfig config)
 {
     ILRuntimeHotFix = value;
     Config          = config;
 }