public static ILRuntimeAppEditor GetInstance() { if (instance == default) { instance = new ILRuntimeAppEditor(); } else { } return(instance); }
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 接口"); } }