how to use foreach in unity c# code example Example: unity c# foreach foreach(var item in collection) { }