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.

    Note

    If you've been working through the book using the C# examples, you should also rename the class inside the script when you rename the script file.

  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

Get Unity 4.x Game Development by Example 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.