Chapter 10, Moving Around, Collisions, and Keeping Score

Pop quiz – knowing which Unity methods to call

Q1

By changing the transform coordinates of the GameObject, or by adding Rigidbody to the GameObject and applying a force.

Q2

Unity highly recommends using the FixedUpdate() method.

Q3

First, in the Scene panel, a Projectile GameObject is created to be made into a Prefab. To get one into the running game, you have to instantiate the Prefab using the Instantiate() method.

Q4

The OnGUI() method.

Get Learning C# by Developing Games with Unity 3D Beginner's Guide 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.