I’ve created a simple head and dropped my script over the head game object which is:
using UnityEngine;
using System.Collections;
public class EnemyControl : MonoBehaviour {
public Transform LookAtTarget;
// Update is called once per frame
void Update ()
{
transform.LookAt(LookAtTarget);
}
}
When I hit play, the head doesn’t stay on the position I’ve dropped it on my map, it goes to a certain position and when I move the player around ii keeps circleing the player no matter where I go. I just wanted to make it rotate and keep looking to the player where I left it.