Files
TuanTuan-Engine/Assets/GameFramework/Runtime/PatchLogic/PatchManager.cs

21 lines
649 B
C#
Raw Normal View History

2025-11-03 00:24:36 +08:00
using UnityEngine;
using Cysharp.Threading.Tasks;
using YooAsset;
public class PatchManager : Singleton<PatchManager>
{
public async UniTask<bool> StartOperation(EPlayMode playMode)
{
YooAssets.Initialize();
PreloadOperation _preloadOperation = new PreloadOperation(playMode);
await _preloadOperation.Execute();
MainOperation _mainOperation = new MainOperation(playMode);
await _mainOperation.Execute();
2025-11-03 17:46:28 +08:00
await HotDllLoader.Inst.LoadDepDll(YooAssets.GetPackage("Main"));
await HotDllLoader.Inst.LoadDll(YooAssets.GetPackage("Main"), "GameScripts.Main");
2025-11-03 00:24:36 +08:00
return true;
}
}