Time for action - collision-enable the Character
Now that the bomb is all rigged up, we'll be able to determine through code when it hits the player character. However, the player character is missing its Collider Component too! Let's fix that.
- Click to select the Character Prefab in the Hierarchy panel.
- Click Component | Physics | Box Collider in the menu. You'll see that "Losing prefab" warning. Don't fret none just click on Add.
- In the Inspector panel, click on the gray arrows to expand the Size and Center settings for your new Box Collider. Update the fields with these values:
- Size: 5, 16, 10
- Center: -1, 8, 1
Just like we did with the bomb, we'll ...