mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-19 02:24:37 +08:00
add warning
This commit is contained in:
parent
9a149da66e
commit
4ace55d4d7
@ -497,11 +497,20 @@ namespace DCFApixels.DragonECS
|
|||||||
foreach (var incTypeID in _mask.inc)
|
foreach (var incTypeID in _mask.inc)
|
||||||
{
|
{
|
||||||
var pool = world.GetPoolInstance(incTypeID);
|
var pool = world.GetPoolInstance(incTypeID);
|
||||||
if (pool != null && pool.Has(entityID) == false)
|
if (pool != null)
|
||||||
{
|
{
|
||||||
pool.AddRaw(entityID, null);
|
if (pool.Has(entityID) == false)
|
||||||
|
{
|
||||||
|
pool.AddRaw(entityID, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#if DEBUG
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EcsDebug.PrintWarning("Component has not been added because the pool has not been initialized yet.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
foreach (var excTypeID in _mask.exc)
|
foreach (var excTypeID in _mask.exc)
|
||||||
{
|
{
|
||||||
var pool = world.GetPoolInstance(excTypeID);
|
var pool = world.GetPoolInstance(excTypeID);
|
||||||
|
Loading…
Reference in New Issue
Block a user