HybridCLRHelper.cs 534 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using HybridCLR;
  3. using UnityEngine;
  4. namespace ET
  5. {
  6. public static class HybridCLRHelper
  7. {
  8. public static void Load()
  9. {
  10. Dictionary<string, UnityEngine.Object> dictionary = AssetsBundleHelper.LoadBundle("aotdlls.unity3d");
  11. foreach (var kv in dictionary)
  12. {
  13. byte[] bytes = (kv.Value as TextAsset).bytes;
  14. RuntimeApi.LoadMetadataForAOTAssembly(bytes, HomologousImageMode.Consistent);
  15. }
  16. }
  17. }
  18. }