private void UpdateNode(ref UnitOccupyingCellNode node) { if (node.Entity.IsDead() || node.Tr == null) { return; } var position = node.Tr.position.ToCellGridP3ZeroY(); ref var gridPos = ref node.PositionComponent.GetReference();
public MapSystem() { NodeFilter <UnitOccupyingCellNode> .Setup(UnitOccupyingCellNode.GetTypes()); _nodeList = EntityController.GetNodeList <UnitOccupyingCellNode>(); }