19 lines
484 B
C#
19 lines
484 B
C#
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;
|
|
}
|
|
}
|
|
|