get all gameobjects with tag and add 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); }