Waypoints C# unity 3d

Hello all i’m trying to make a waypoint system for a tower defense game using C# and unity.
I have made a waypoint code, however the game object i have attached this too is not moving to the waypoints.


stole the code from that forum to get a understanding of how things work, however i can’t seem to to work out how to get a enemy to move from point to point.

If the gameobject isn’t moving toward the first waypoint, then you didn’t assigned it properly in the inspector (array Waypoints).

If it doesn’t go to the second waypoint, that’s normal. Add a rigidbody, disable gravity and enable isKinematic.