All your PathNodes have the same gridPosition because you never set it.
Your PathNode constructor is empty. It should look like this
public PathNode(GridPosition gridPosition)
{
this.gridPosition = gridPosition;
}
All your PathNodes have the same gridPosition because you never set it.
Your PathNode constructor is empty. It should look like this
public PathNode(GridPosition gridPosition)
{
this.gridPosition = gridPosition;
}
Such a simple thing caused such a headache. Isn’t coding grand?
But it looks like everything is fully working now!
Thank you so much for your help!
Indeed, it is. Sometimes the issue is several scripts away from the error message.
Yeah, we would have been going back-and-forth for a while if I couldn’t see the project. It wasn’t a straight-forward bug to find.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.