mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2026-04-22 04:35:55 +08:00
22 lines
741 B
C#
22 lines
741 B
C#
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace DCFApixels.DragonECS
|
|||
|
|
{
|
|||
|
|
[CreateAssetMenu(fileName = nameof(EcsDefaultWorldProvider), menuName = EcsConsts.FRAMEWORK_NAME + "/WorldProviders/" + nameof(EcsDefaultWorldProvider), order = 1)]
|
|||
|
|
public class EcsDefaultWorldProvider : EcsWorldProvider<EcsDefaultWorld>
|
|||
|
|
{
|
|||
|
|
//private static EcsDefaultWorldProvider _singleInstance;
|
|||
|
|
//public static EcsDefaultWorldProvider SingletonInstance
|
|||
|
|
//{
|
|||
|
|
// get
|
|||
|
|
// {
|
|||
|
|
// if (_singleInstance == null)
|
|||
|
|
// {
|
|||
|
|
// _singleInstance = FindOrCreateSingleton<EcsDefaultWorldProvider>();
|
|||
|
|
// }
|
|||
|
|
// return _singleInstance;
|
|||
|
|
// }
|
|||
|
|
//}
|
|||
|
|
}
|
|||
|
|
}
|