for loop unity
for (int i = 0; i < 50; i++) { //Do something 50 times }
Here is what the above code is Doing:
1. Create a variable called i and set it to 0.
2. Check if i is less than 50.
3. If i is less than 50, do the code inside the loop.
4. Add 1 to i.
5. Go back to step 2.