mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-19 10:34:35 +08:00
24 lines
676 B
C#
24 lines
676 B
C#
![]() |
namespace DCFApixels.DragonECS
|
|||
|
{
|
|||
|
public class EcsDefaultWorldSingletonProvider : EcsWorldProvider<EcsDefaultWorld>
|
|||
|
{
|
|||
|
private static EcsDefaultWorldSingletonProvider _instance;
|
|||
|
public static EcsDefaultWorldSingletonProvider Instance
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if (_instance == null)
|
|||
|
{
|
|||
|
_instance = FindOrCreateSingleton<EcsDefaultWorldSingletonProvider>("DefaultSingletonProvider");
|
|||
|
}
|
|||
|
return _instance;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
protected override EcsDefaultWorld BuildWorld()
|
|||
|
{
|
|||
|
return new EcsDefaultWorld();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|