O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - do some housekeeping

We're most of the way to a brand new game, and we barely broke a sweat! Let's take a moment to rename a few things before we make some script adjustments.

  1. Rename the Bomb and Character Prefabs EnemyShip and HeroShip, respectively. You should make this change in both the Hierarchy and Project panels.
  2. In the Project panel, rename the Character Script to HeroShip.
  3. Likewise, rename the FallingObject Script to EnemyShip.
  4. In the Hierarchy panel, click to select the EnemyShip Prefab (formerly the Bomb Prefab).
  5. Hover your mouse cursor over the Scene view and press the F key to focus in on the EnemyShip. You may notice that the Sphere Collider is too small. Let's fix that.
  6. In the Inspector panel, change the radius ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required