mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
insert AUTO_DEL_LAYER after POST_END_LAYER
This commit is contained in:
parent
28e786ca7a
commit
75031b0014
@ -54,7 +54,7 @@ namespace DCFApixels.DragonECS
|
|||||||
where TComponent : struct, IEcsComponent
|
where TComponent : struct, IEcsComponent
|
||||||
{
|
{
|
||||||
if (AUTO_DEL_LAYER == layerName)
|
if (AUTO_DEL_LAYER == layerName)
|
||||||
b.Layers.Insert(EcsConsts.POST_END_LAYER, AUTO_DEL_LAYER);
|
b.Layers.InsertAfter(EcsConsts.POST_END_LAYER, AUTO_DEL_LAYER);
|
||||||
b.AddUnique(new DeleteOneFrameComponentSystem<TComponent>(), layerName);
|
b.AddUnique(new DeleteOneFrameComponentSystem<TComponent>(), layerName);
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user