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 - 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 BombPrefab.
  2. In the menu, click on Component | Audio | Audio ...

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