mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-19 10:34:35 +08:00
19 lines
554 B
C#
19 lines
554 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>("SingletonDefaultWorld");
|
|
}
|
|
return _instance;
|
|
}
|
|
}
|
|
}
|
|
}
|