NEW
Font size
WorksheetsLaser Defender Part 2 Worksheet
Total questions: 15
Worksheet time: 8mins
Look at the following image and then answer the question, "Why are our lasers not being destroyed by our trigger volume?"
Our Shredder GameObject has been disabled.
Our Box Collider is not set to Trigger.
Our Shredder transform has not been reset.
Our laser has not been saved as a prefab.
What is one of the main benefits of using a List instead of an Array?
Lists are usually faster to access
List are more flexible because we can more easily add and remove items
Lists use [square brackets] which look cooler than <angle brackets>.
Lists allow us to see how many items are in the collection at runtime whereas arrays can only be calculated before runtime.
Which method would we use to progress a game object towards a specified point within our game each frame?
MoveTowards()
FindObjectOfType()
Transform.position()
MoveToPoint()
Which of the following is written correctly for allowing us to get the number of enemies from another class?
Which of the following names below best matches this description:"Executes a block of code on each element in an array or a collection of items"
Foreach loop
For loop
While loop
If loop
Which of the following best matches the structure for writing a For Loop?
Why would we use [SerializeField] for a variable that we have no intention of changing in the inspector?
So that we can more effectively cache/save that variable for later use.
To allow other classes to change the variable during runtime if they need to.
So we can easily see in the inspector how the variable changes during runtime.
So that we can write our variable at the top of our script with the other variables.
What can we conclude from looking at the following code?
We have two coroutines that will run one after the other - OurSecondCoroutine() will start once OurFirstCoroutine() is complete.
Our code we return an error because we cannot use nested Coroutines like this.
Our enemies will only start moving once all of the yield conditions of OurSecondCoroutine() have been met.
Our enemies will stop moving once OurSecondCoroutine() has finished executing all of yield return conditions.
Which of the following code will turn our Start method into a coroutine?
A script is added to a Game Object as a what?
A Cache
An Add-On
A Field
A Component
In the following method, what terminology would we use to refer to damageDealer ?
Game Object
Parameter
Type
Instance Variable
Which of the following best describes a "way-point"?
A point far off in the distance
An invisible marker used to identify a specific location as part of a path
A rest area where players can re-charge before continuing
A set of instructions that describe how to complete a step in a process
What is our recommended way to build an ordered list of way-point objects that a script can use?
Carefully name the way-point objects with 1, 2, 3, etc. in the name
Place a "way-point-X" tag on each object, where X is the order number
Define an empty parent object in the Hierarchy and then place the way-point objects under that parent, in order
Define an object array on a script, and then drag the way-point objects to that array in the correct order
Which tab in the Unity interface will display the properties and controls for the specific game object that you select?
The Inspector tab
The Hierarchy tab
The Properties tab
The Scene tab
What would following code output to the Console window?
The values 4, 3, 2, 1, 0 in that order
The values 3, 2, 1, 0 in that order
The values 4, 3, 2, 1 in that order
The values 0, 1, 2, 3, 4 in that order
