This commit is contained in:
Mikhail 2024-01-31 04:40:27 +08:00
parent 9c50a88266
commit 57e33fbe3f
3 changed files with 8 additions and 11 deletions

View File

@ -181,10 +181,10 @@ namespace DCFApixels.DragonECS.Relations.Utils
var (startEntityID, endEntityID) = _source.GetRelationInfo(relEntityID);
ref RelNodesInfo relInfo = ref _relNodesMapping[relEntityID];
_startBaskets.RemoveFromBasket(startEntityID, relInfo.startNodeIndex);
//if (!_isLoop)
//{
if (!_isLoop)
{
_startBaskets.RemoveFromBasket(endEntityID, relInfo.endNodeIndex);
//}
}
}
public void DelStart(int startEntityID)
{

View File

@ -102,10 +102,10 @@ namespace DCFApixels.DragonECS
{
_startWorldHandler.Destroy();
_arcWorldHandler.Destroy();
//if (!_isLoop)
//{
_endWorldHandler.Destroy();
//}
if (!_isLoop)
{
_endWorldHandler.Destroy();
}
}
#endregion

View File

@ -92,14 +92,11 @@ namespace DCFApixels.DragonECS
if (nodeIndex <= 0)
{
//Throw.ArgumentOutOfRange();
return;
}
#endif
ref BasketInfo basketInfo = ref _baskets[basketIndex];
if (basketInfo.count <= 4)
{
}
ref var node = ref _nodes[nodeIndex];
int nextNode = node.next;