NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/SubSystems/LoadingExecutorManager.cs

27 lines
691 B
C#

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