Пример #1
0
 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();
Пример #2
0
        public MapSystem()
        {
            NodeFilter <UnitOccupyingCellNode> .Setup(UnitOccupyingCellNode.GetTypes());

            _nodeList = EntityController.GetNodeList <UnitOccupyingCellNode>();
        }