mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
fix
This commit is contained in:
parent
d7b9fdd903
commit
88f729b868
@ -19,7 +19,11 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
if (_singletonInstance == null)
|
||||
{
|
||||
_singletonInstance = FindObjectOfType<EcsRootUnitySingleton>();//FindFirstObjectByType<EcsRootUnitySingleton>();
|
||||
#if UNITY_6000_0_OR_NEWER
|
||||
_singletonInstance = FindFirstObjectByType<EcsRootUnitySingleton>();
|
||||
#else
|
||||
_singletonInstance = FindObjectOfType<EcsRootUnitySingleton>();
|
||||
#endif
|
||||
}
|
||||
return _singletonInstance?._root;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user