im looking for information on how to create a simple enemy. nothing special, just one that follows you and kills you on contact. iv’e been having trouble finding a good tutorial, and some of the ones on unity didn’t help. if you know, or know a good tutorial please inform me.
A super simple script would look like:
Transform player;
void Awake()
{
player = GameObject.FindGameObjectWithTag("Player").transform;
}
void Update()
{
transform.LookAt(player);
transform.Translate(Vector3.forward);
}