Textboxes & Scenes
Probability
Persistent Data & High Scores
Accessibility
Buttons & Time
100

how to go about loading the next scene?

SceneManager.LoadScene();

100

what is the probability of you getting 2-5 on a dice twice in a row?

4/9

100

What data structure did we model our SaveScore() method off of?

Hash map/Dictionary

100

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.

100

When a button object is created, which unity event is attached to the button?

OnClick()

200

What do you need to import inside a script before manipulating scenes within Unity?

using UnityEngine.SceneManagement;

200

Given a fair die, what is the probability of rolling a six three times?

1/216

200

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);

200

What features can you implement for users with impaired vision?

Large text and image sizes. Text to speech.

200

I want to hide an object from appearing during run time, how do you achieve this inside a script?

GameObject.SetActive(false)

300

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"

300

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

300

In what circumstance would a person implement persistent data into their Unity game?

When they want an object to persist throughout each scene.

300

How can we be sure our accessibility features will fit the needs of a person with disability?

By gathering data samples from users who have disabilites.
300

What method do you call to repeat a method at a start time and the rate it repeats?

InvokeRepeating("Method", startTime, repeatRate);

400

When you create a text GameObject on its own under the hierarchy, what is the parent object that is automatically created?

Canvas

400

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

400

What is the variable needed in a Persistent Data class that allows other classes to call the instance?

public static PersistentData Instance;

400

What are some types of disabilities a person may have?

Visual impairment, physical impairment, hearing impairment, cognitive impairment
400

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 

500

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.

500

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?

c(n,k) = n!/(n!(n-k)!)

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

500

Referring back to the SaveHighScore script written during lab, how can Unity fetch previously recorded player names and high scores?

by using PlayerPrefs 
500

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.

500

How can we implement a scene switching functionality to the buttons created in Unity?

by creating different load scene functions and assigning them to the button's OnClick() event
M
e
n
u