Skip to content

Commit

Permalink
[unity]LoadExtensionMethodInfo只需调用一次
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jan 16, 2025
1 parent 7bb4273 commit bd464bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unity/Assets/core/upm/Runtime/Src/IL2Cpp/JsEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public JsEnv(ILoader loader, int debugPort = -1)
Puerts.NativeAPI.SetGlobalType_TypedValue(typeof(TypedValue));
Puerts.NativeAPI.SetGlobalType_ArrayBuffer(typeof(ArrayBuffer));
Puerts.NativeAPI.SetGlobalType_JSObject(typeof(JSObject));

PuertsIl2cpp.ExtensionMethodInfo.LoadExtensionMethodInfo();
isInitialized = true;
}
}
Expand Down Expand Up @@ -112,8 +114,6 @@ public JsEnv(ILoader loader, int debugPort = -1)
else if (Puerts.PuertsDLL.GetLibBackend(nativeJsEnv) == 2)
Backend = new BackendQuickJS(this);

PuertsIl2cpp.ExtensionMethodInfo.LoadExtensionMethodInfo();

if (debugPort != -1) {
Puerts.PuertsDLL.CreateInspector(nativeJsEnv, debugPort);
}
Expand Down

0 comments on commit bd464bb

Please sign in to comment.