how to go about loading the next scene?
SceneManager.LoadScene();
what is the probability of you getting 2-5 on a dice twice in a row?
4/9
What data structure did we model our SaveScore() method off of?
Hash map/Dictionary
Why should we design apps and implement accessibility features?
It's the right thing to do.
It's the law.
It's good for business.
Increase usability for everyone.
When a button object is created, which unity event is attached to the button?
OnClick()
What do you need to import inside a script before manipulating scenes within Unity?
using UnityEngine.SceneManagement;
Given a fair die, what is the probability of rolling a six three times?
1/216
What line of code can you add to your script so that an object wont be destroyed when a new scene is loaded?
DontDestroyOnLoad(GameObject);
What features can you implement for users with impaired vision?
Large text and image sizes. Text to speech.
I want to hide an object from appearing during run time, how do you achieve this inside a script?
GameObject.SetActive(false)
In Canvas, the textbox, images, etc are clipping out of the screen. Why is that?
There is an empty Render Camera and the render mode is not set to "Screen Space - Camera"
Assume that you pick two cards from a deck of cards (without replacing the first card before you pick the second). What is the probability that both are number cards (i.e., numbers 2 -- 10, not J, Q, K, A)?
315/663
In what circumstance would a person implement persistent data into their Unity game?
When they want an object to persist throughout each scene.
How can we be sure our accessibility features will fit the needs of a person with disability?
What method do you call to repeat a method at a start time and the rate it repeats?
InvokeRepeating("Method", startTime, repeatRate);
When you create a text GameObject on its own under the hierarchy, what is the parent object that is automatically created?
Canvas
First the player rolls a d4, and if they roll a 4, then they roll a d6. If they roll a 6 on that, then they roll a d20. If they rolled higher than 15 on that, then they win! I think all the rolling will be pretty exciting. What percentage of the time will a player win?
1/96
What is the variable needed in a Persistent Data class that allows other classes to call the instance?
public static PersistentData Instance;
What are some types of disabilities a person may have?
I want to implement a pause and resume feature into my game. How can I achieve this using code?
set Time.timeScale to 0 or 1
You have written the script that handles scene management, but is unable to switch between scenes, what could be the issue?
The new scenes were not added to the build setting.
Choosing from a jar with 7 red marbles and 3 blue marbles randomly, what is the probability of choosing 1 red marble and 2 blue marbles?
Total Number of Combination: c(10, 3) = 10!/(10!(10-3)!) = 120
Total Number of ways to choose red Marble: c(7,1) = 7
Total Number of ways to choose blue Marbles: c(3,2) = 3
Total number of both combinations: 7 * 3 = 21
Probability of choose 1 red and 2 blue: 21/120 = 7/40
Referring back to the SaveHighScore script written during lab, how can Unity fetch previously recorded player names and high scores?
Why is implementing accessibility in games much harder than webpages?
Games are more reliant on heavy visuals and often has a lot more movement and distractions.
How can we implement a scene switching functionality to the buttons created in Unity?