Book Image

Unity Game Development Scripting

By : Kyle D'Aoust
Book Image

Unity Game Development Scripting

By: Kyle D'Aoust

Overview of this book

Table of Contents (17 chapters)
Unity Game Development Scripting
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Playtesting


For playtesting, you will need to get a few assets from the Unity Asset Store for the sound effects, background music, and atmospheric sounds. These are the ones I recommend that you use for this example:

First, create an empty GameObject, name it RunningSource, and add an audio source to it; this can be done by navigating to Add Component | Audio | AudioSource. On the main camera, add AudioSource if there is none. Next, add the SFX_Manager script to the camera. For its values, set the following:

  • SFX volume to 1

  • Run to footsteps_runcarpet_1

  • Spell to shot_hand_gun...