Time for action – make some noise

So far, the games we've made have been completely silent. I count this as a terrible tragedy; audio in a game can account for half of the player's emotional experience. In the case of games like Rock Band, there would be no game without audio (hilarious little plastic instruments notwithstanding). Audio is so important to games that even crummy little low-rent sounds effects (like the ones we're about to add to this game!) can increase the game's awesomeness by a factor of WOW... to the power of GEE GOLLY—something like that. It's all very scientific.

Let's rig up our Bomb and Stein Prefabs so that they can emit sounds.

  1. In the Project panel, click on the Bomb Prefab.
  2. In the menu, navigate to Component | Audio | ...

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.