I’ve following the course up to the point where ben does dictionary data structure and in my pathfinder scropt, I’m getting this error from my foreach statement which states that " Foreach statements cannot operate on variables of type ‘Waypoint’ because ‘Waypoint does not contain a public instance definition for "GetEnumerator’ " Here is my pathfinder code:
Just in case here’s the waypoint script as well (upload://qWD7MqsJxpvreKj6eS6zPG3ABdZ.jpeg)