var enemies : GameObject[] = GameObject.FindGameObjectsWithTag("Enemy");
var distance = Vector3.Distance(enemies.transform.position,transform.position);
if(distance < Vector3(2,2,2)){
//DoSomething
}
This is what i've got so far, obviously transform cannot be accessed with just referencing an array, but how can I find and store the transforms off all the GamObject within the array.
Thanks - C