Concepts
Code Review
Unity
Random
100

What is a variable

3 parts of a variable

A variable is used to store data to be used and manipulated later


visibility / type /name

100

"2" == 2 True or False

False

100

Unity is based on what language?

C#

100

What is Unity 

Unity is a game engine built on C# 

200

Why do we use functions

To simplify and modularize our code to make our codebase cleaner and effective


200

What is the result of X :

y = 0

x = 1;

y += x

x += y 


2

200

What is a Scene, Hierarchy, Assets


Scenes are levels Hierarchy are all assets inside a scene and Assets are the objects/data 

200

What country has the best competitive programmers?

China / Russia

300

How does AI movement work?

Utilizing NavMesh Agent to calculate potential and allowed areas of traversal.

Getting player data and using previous ^^ to move towards player

300

How does movement work and inside what function should you put any repeating logic inside

When key is pressed ( use vector3 functions to move )

inside update

300

What are the colliders used for 

To detect collision between objects

300

What country has the highest NUMBER of programmers

USA

400

(T and T) or (T or F) and F  is what T/F

Explain

T or T and F
T and F
F

False

400

What is the difference between Object / Class/ Prefab

Classes describe what something does/looks like/ interactions

Objects are clones and physical represensations of classes.

Prefabs are Objects in its entirety. Looks/Scripts/componenets etc.

Prefabs / objects can be used interchangebly in unity

400
How do we introduce physics into the game

Using the Rigidbody component

400

1 = ?

0 = ?

BONUS: 1011 = ?

True, False

11

500
What is inheritance and give me an example in our code on how it works and why we use it.


Inheritance is taking the properties of the parent and utilizing it in the child. This is important because, it reduces unnecasary duplicate code as well as making sense of how objects are related to each other
Shootenemy and basic enemy


500

What is the difference between a local and a global variable. Whats the difference between that and Public/private

Local variables are only used within its functions and global is used within its entire class.

Public is used for accessing the data outside of the class while private restricts it to be used inside its own class. 

500

How do we access any collision events in the code?

Using OncollisionEnter()

Using OnTriggerEnter()

500

What year was Unity Made?

2005