I would just like to really understand some things so I figured it might be worth throwing a question out here to see if someone else picked it up:)
- Below the serializing of the Waypoint list. What are we actually doing here? Why do we need to specify that it’s a . This is not what we tend to do with things like GameObjects. Why do we need to do it now?
[SerializeField] List<Waypoint> path = new List<Waypoint>();
Below I fully get that we are getting waypoints from path but why is there two Waypoints in this instance?
Why isn’t there just:
foreach (waypoint in path).
foreach (Waypoint waypoint in path)
Hopefully everyone has a good evening / day / morning depending on where you are