Hi,
I’m looking at the script you added to the GitHub folder of this lecture and I don’t understand how it should be built.
In the lecture we changes the path and put the tag only on the parent (and changes the code accordingly), now I’m looking at the GitHub and see this code:
//GameObject[] waypoints = GameObject.FindGameObjectsWithTag("Path");
GameObject[] tiles = GameObject.FindGameObjectsWithTag("Path");
//foreach(GameObject waypoint in waypoints)
foreach(GameObject tile in tiles)
{
//path.Add(waypoint.GetComponent<Waypoint>());
Waypoint waypoint = tile.GetComponent<Waypoint>();
if(waypoint != null)
{
path.Add(waypoint);
}
}
Does that mean that we left everything as it was and just renamed the wayspoints list to tiles? Should I add the path tag to all of the path tiles instead of their parent? Got really confused.