Making enemy moving towards player

hi!

i have use the Look at player thing, and now i want the enemy to move towards the player.
how do i do that?

fairly simple…

public Transform target;
public float speed = 5;

void Update{
transform.Lookat(target);
transform.position = transform.position + transform.forward * speed * Time.deltaTime;
}

Only a simple solution. The bigger questions are how to get to to stop a certain distance and make intelligent decisions about what it is going to do once it gets there.

Thank you very much X-D