Coding in C# — Using IF Statements
IF statements are used to make game logic based on some conditions. IF and AND statements can only run inside of methods such as void Start () and void Update().
The syntax of an IF statement is as follows:

To make coding simpler, you should write out what you want to achieve first; pseudo code; then convert it to code.

A simple IF statement that adds ten to a variable score every time the space key is pressed.
