I have multiple gameobjects in my scene and they all have the same tag. How can I kill them all?
I thought that this might be a solutuion but GameOBject.FindWithTag() does not contain a defintion for GetEnumerator! :(
foreach (GameObject go in GameObject.FindWithTag("MyObject"))
Destroy(go.gameObject, 0.5f);
karl
2
var stuff : GameObject[] = GameObject.FindGameObjectsWithTag("MyObject");
for(item in stuff)
{
Destroy(item);
}