for each i = unity code example
Example 1: unity c# foreach
foreach(var item in collection) {
}
Example 2: for loop unity
for (int i = 0; i < 50; i++)
{
//Do something 50 times
}
foreach(var item in collection) {
}
for (int i = 0; i < 50; i++)
{
//Do something 50 times
}