If I have a turn-based game where, for example, unit can travel 5 nodes in all directions.
After unit move 1 node, I want him to be able to move 4 more, so how can I get remaining value for calculating possible moves for my unit?
In an example I see this:
var path = ConstantPath.Construct(unit.transform.position, unit.movementPoints * 1000 + 1);
So, I suppose, I should somehow calculate remaining movement points for path calculations. Any suggestions?