using UnityEngine; using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; using AlicizaX; using YooAsset; using Cysharp.Threading.Tasks; using Hotfix.GameLogic; using Luban; using UnityEngine.SceneManagement; namespace GameLogic { public static class HotfixEntry { private static List _hotfixAssembly; public static List HotfixAssembly => _hotfixAssembly; public static void Entrance(object[] objects) { Log.Info("HotFix Logic Entry!"); _hotfixAssembly = (List)objects[0]; } /// /// 加载二进制配置表 /// /// /// private static async Task ConfigBufferLoader(string file) { var textAsset = await GameApp.Resource.LoadAssetAsync(file); byte[] bytes = textAsset.bytes; GameApp.Resource.UnloadAsset(textAsset); return ByteBuf.Wrap(bytes); } } }