SingleNodeBlocker detailed example of use

Hi,

I’m using A* Pathfinding Project Pro in my turn based game (square grid).

I’m having trouble with SingleNodeBlocker because I think I’m complicating more than it is.

My setup is:

  • Enemy units and Player units
  • Every unit has a fixed action points (cells to move)

My goals are:

  • One unit cannot traverse a cell if it’s already occupied for a Unit (friendly or enemy), so every unit has to block the cell he is occupying.
  • When a unit moves, it has to block the new cell it’s occupying and has to unblock the previous occupied cell.

I started using DynamicGridObstacle but looking at the documentation it looks that SingleNodeBlocker is the way to go.

I’ll be grateful if someone can guide me.

Thanks in advance.