Question by
Game-Enthusiast · Mar 09, 2017 at 07:12 PM ·
enemy aiwaypoint
Enemy not rotating its body when waypoint reach
Enemy does not rotate its body, when the enemy reach waypoint.. it turn but not rotates its body can anyone help me?
here is my script..
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);
}
}
}
Comment