mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add check to EcsWorld.Destroy
This commit is contained in:
parent
8eee7dfd08
commit
23c7b62ee8
@ -153,6 +153,10 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
public void Destroy()
|
||||
{
|
||||
if (_isDestroyed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_entityDispenser = null;
|
||||
_pools = null;
|
||||
_nullPool = null;
|
||||
|
Loading…
Reference in New Issue
Block a user