using Cysharp.Threading.Tasks; using Framework; using PhxhSDK; namespace Gameplay.SubSystems { public class LoadingExecutorManager : Singlenton { private LoadingExecutor _currentloadingExecutor; public async UniTask ExecuteLoading(LoadingExecutor executer) { if (executer == null) return; if (_currentloadingExecutor != null && _currentloadingExecutor.IsExcuting()) return; _currentloadingExecutor = executer; await _currentloadingExecutor.Excute(); } public LoadingExecutor CurrentExcutor => _currentloadingExecutor; } }