unity c# go through an arry of game objects code example Example: unity c# foreach foreach(var item in collection) { }