HybridCLRHelper.cs 553 B

12345678910111213141516171819
  1. using ET.Client;
  2. using HybridCLR;
  3. using UnityEngine;
  4. namespace ET
  5. {
  6. public static class HybridCLRHelper
  7. {
  8. public static void Load()
  9. {
  10. foreach (string s in AOTGenericReferences.PatchedAOTAssemblyList)
  11. {
  12. UnityEngine.Object o = ResourcesComponent.Instance.GetAssets($"Assets/Bundles/AotDlls/{s}.bytes");
  13. TextAsset textAsset = o as TextAsset;
  14. RuntimeApi.LoadMetadataForAOTAssembly(textAsset.bytes, HomologousImageMode.SuperSet);
  15. }
  16. }
  17. }
  18. }