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.
Rename the Bomb and Character Prefabs
EnemyShip
andHeroShip
, respectively. You should make this change in both the Hierarchy and Project panels.In the Project panel, rename the Character Script to
HeroShip
.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.
In the Hierarchy panel, click to select the EnemyShip Prefab (formerly the Bomb Prefab).
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 large. Let's fix that.
In the Inspector panel, change the radius of the Sphere Collider to
1.7
.Click on the Apply button to apply these changes to the source Prefab when...