init
This commit is contained in:
18
Assets/GameFramework/Runtime/PatchLogic/PatchManager.cs
Normal file
18
Assets/GameFramework/Runtime/PatchLogic/PatchManager.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user