Tower Defense Waypoint

Hey, I’m currently working on a Tower Defense Game and used Brackey’s Tutorials and after follow all of the tutorials, I mod the codes adding some simple feature on the turrets and it went pretty well.

But the problem is… for the Enemy Waypoint… the enemy moves from point A to point B just like what I wanted to be but the only thing that I couldn’t figure out is that the enemy moves but not rotating or facing left or right. I tried to rotate the waypoint object itself but nothings changed so here is the code

using UnityEngine;

public class Waypoints : MonoBehaviour {

    public static Transform[] points;

    void Awake()
    {
        points = new Transform[transform.childCount];

        for (int i = 0; i < points.Length; i++)
        {
            points[i] = transform.GetChild(i);
        }
           
    }
}

I know that I need to add "rotation’ but I unable to figure out how to implement it.

Thanks in advanced.
Let me know if you need more detail about the issue

You probably just need transform.LookAt() on your monster object to look at the target waypoint. Or Quaternion.LookRotation() and Quaternion.RotateTowards() if you want it to happen over time.