How can i set a tag multiple GameObject[]
i tried this but its not work.
public GameObject[] randomSpawnes;
void SetTag(string tag ){
GameObject[] randomSpawnes = GameObject.FindGameObjectsWithTag (tag);
foreach (GameObject target in randomSpawnes)
{
target.gameObject.tag ="BlaBla";
}
}
↧