This is my current script, would like to get the gameobjects into an array then, change the tags of each object in the array, based on the index .
private GameObject[] enemies;
//private GameObject enemy;
void Start ()
{
enemies = GameObject.FindGameObjectsWithTag ("Enemy");
//enemy = GameObject.FindWithTag ("Enemy");
foreach (GameObject enemy in enemies) {
switch (enemies) {
case 0:
enemy.tag="enemy1";
break;
case 1:
enemy.tag="enemy2";
break;
case 2:
enemy.tag="enemy3";
break;
}
}
}