Pop Quiz Answers

Chapter 1: Getting to Know Your Environment

Pop quiz—dealing with scripts

Q1

Unity and Visual Studio have a symbiotic relationship

Q2

The Reference Manual

Q3

None, as it is a reference document, not a test

Q4

When the new file appears in the Project tab with the filename in edit mode, which will make the class name the same as the filename and prevent naming conflicts

Chapter 2: The Building Blocks of Programming

Pop quiz—C# building blocks

Q1

Storing a specific type of data for use elsewhere in a C# file

Q2

Methods store executable lines of code for fast and efficient reuse

Q3

By adopting MonoBehaviour as its parent class and attaching it to a GameObject

Q4

To access variables ...

Get Learning C# by Developing Games with Unity - Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.