What keyword is used to check if a condition is true?
if
What is the equal to operator?
==
What is the symbol for division?
/
What method do we use to move a game object?
(Its in PlayerController)
transform.Translate
What is a prefab?
A clone of a game object stored as an asset
What part of an if else statement runs only if the if condition is false?
else
What symbol do we use to multiply?
*
You want to calculate a player’s average score over 3 levels. What operator must be used?
/
What method did we use to spawn a game object?
(It was in our PlayerController)
Instantiate
What window do we store all of our GameObjects?
Hierarchy
You make a rule: “If it’s raining, bring an umbrella. Otherwise, wear sunglasses.” The weather is sunny. What do you do?
Wear Sunglasses
If you use the modulus operator to divide 10 by 3, what is the result?
1 (because 3 goes into 10 three times with a remainder of 1)
A student writes: “To increase the score by 1, I used score =+ 1;”
It should be += 1; =+ 1 sets the value to positive 1
It should be += 1; =+ 1 sets the value to positive 1
When creating our game, what went inside the parentheses of Destroy()
the game object that we wanted to destroy...
(gameObject)
What window did we use to store all of out assets?
What is the second step to creating a if statement
parenthesis
You have 6 slices of pizza to share with 4 friends. What operator would you use to find out how many slices are left over?
%
A character can only unlock the door if their level is at least 10 and their score is more than 100. What operator?
A logical operator like && (AND)
Console.WriteLine is a method that we used while we programmed...What does it do?
It outputs things into the console.
What window do we use to edit the components and settings of a game object in the unity game editor?
Inspector
what key word do we use to check multiple conditions?
else if
You want to check that a score is not 100. Which operator would you use in the condition?
!=
You check whether a number is odd by using number % 2.
What must the result be to prove the number is odd?
1
What did we use inside of our transfrom.Translate method parentheses?
How do we create a script in Unity and what must we do to an object to use the script
assets, create, c# script.
Drag the script onto the game object in order to use it.