2023-08-22 19:08:45 +08:00
|
|
|
using Framework;
|
2023-10-19 15:00:19 +08:00
|
|
|
using PhxhSDK;
|
2023-08-22 19:08:45 +08:00
|
|
|
|
|
|
|
|
namespace Gameplay.SubSystems
|
|
|
|
|
{
|
2023-10-19 15:00:19 +08:00
|
|
|
public class LoadingExecutorManager : Singlenton<LoadingExecutorManager>
|
2023-08-22 19:08:45 +08:00
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|