List waypoints;
The teacher’s code:
transform.position = waypoints[wayPointIndex].transform.position;
and my is:
transform.position = waypoints[wayPointIndex].position;
I think the waypoints is type of transform so I wrote in that way.
I wander what is the difference between my code and teacher’s code.