2.3 Control Structures - Loops and Conditional Statements in C# for Unity
2.3 Control Structures - Loops and Conditional Statements in C# for Unity
2
Loops in C#
for Loops
ITM
• Initialize the variables contained in the Boolean expression.
• Tests the Boolean expression to see if the loop body should execute or not.
• Modify at least one of the variables in the Boolean expression (give it a new value).
• Since the speed value is adjustable and need not be changed in code all the time,
we can use update() method instead of start().