unity add all objects with tag to list code example
Example: how to add all items with a tag to a list in unity
public List<GameObject> peopleList = new List<GameObject>(); foreach(GameObject fooObj in GameObject.FindGameObjectsWithTag("people")) { peopleList.Add(fooObj); }