add check to EcsWorld.Destroy

This commit is contained in:
Mikhail 2024-03-03 01:25:45 +08:00
parent 8eee7dfd08
commit 23c7b62ee8

View File

@ -153,6 +153,10 @@ namespace DCFApixels.DragonECS
}
public void Destroy()
{
if (_isDestroyed)
{
return;
}
_entityDispenser = null;
_pools = null;
_nullPool = null;