After adding the check for HasPath(), I get major pauses when moving. It seems to happen as the unit moves to a new grid position. If I comment out the call to HasPath in MoveAction, it goes back to normal. I don’t see any difference between my code and the course, but I don’t see any stuttering in the videos. Is this a known performance issue that will be addressed later, or should I spend some time on it now to figure out what’s going on? I’ve seen some other suggestions, like using Dictionary instead of list, but I would expect this to be part of the course if it’s a performance issue.
My grid is only 23x23.
Thanks.