I'm trying to wrap my head around Arrays, and I'm taking it one bite at a time, what I don't understand is why Transform.LookAt doesn't work with this, it seams like I'm grabbing one enemy in the array and telling the object to look at it, but that must not be correct.
function Update () {
var Enemies : GameObject[];
Enemies = gameObject.FindGameObjectsWithTag("enemy");
var close = (Vector3.Distance(transform.position, Enemies[1].transform.position)> 1);
if(close){
transform.LookAt(Enemies[0]);
}
}