/// <summary> /// 重新读取热更脚本时调用此方法 /// /// TODO 需要在ILRuntime中增加统一释放的代码) /// /// </summary> public void Reset() { IsStart = false; ClearDebugService(); ILRuntimeIniter.HasLoadAnyAssembly = false; MethodCacher?.Clear(); }
protected void InitMethods() { int length = MethodLength; Methods = new List <MethodCacher>(length); For (length, (i) => { var newCacher = new MethodCacher (MethodNames[i], ParameterTypes[i]); Methods.Add(newCacher); }); }