how to loop through a gameobject array code example Example: unity c# foreach foreach(var item in collection) { }