This commit is contained in:
Mikhail 2024-03-10 04:36:58 +08:00
parent bcbb7c917a
commit e66473c0af
2 changed files with 7 additions and 1 deletions

View File

@ -283,7 +283,11 @@ namespace DCFApixels.DragonECS
public EcsPipeline Build() public EcsPipeline Build()
{ {
List<IEcsProcess> result = new List<IEcsProcess>(32); List<IEcsProcess> result = new List<IEcsProcess>(32);
List<IEcsProcess> basicBlockList = _systems[_basicLayer]; List<IEcsProcess> basicBlockList;
if (_systems.TryGetValue(_basicLayer, out basicBlockList) == false)
{
basicBlockList = new List<IEcsProcess>();
}
foreach (var item in _systems) foreach (var item in _systems)
{ {
if (!Layers.Contains(item.Key)) if (!Layers.Contains(item.Key))

View File

@ -164,6 +164,7 @@ namespace DCFApixels.DragonECS
{ {
return; return;
} }
_listeners.InvokeOnWorldDestroy();
_entityDispenser = null; _entityDispenser = null;
_pools = null; _pools = null;
_nullPool = null; _nullPool = null;
@ -173,6 +174,7 @@ namespace DCFApixels.DragonECS
_isDestroyed = true; _isDestroyed = true;
_poolTypeCode_2_CmpTypeIDs = null; _poolTypeCode_2_CmpTypeIDs = null;
_cmpTypeCode_2_CmpTypeIDs = null; _cmpTypeCode_2_CmpTypeIDs = null;
//_entities - не обнуляется для работы entlong.IsAlive
} }
//public void Clear() { } //public void Clear() { }
#endregion #endregion