Implementing our game's audio
In this section, we will implement the audio requirements listed in the previous section. We will import, configure, and script our game to complete the implementation. Before we get started, you should open your Unity game project. Alternatively, you can download theStarting-Chapter-12
Unity project available from the publisher's companion site.
We will implement our game's audio in three steps, each handled in subsequent sections:
- Importing audio assets
- Implementing Cucumber Beetle audio
- Implementing Cucumber Man audio
Importing audio assets
Our first task is to import the audio assets into our game project. Here are the steps:
- Open the game project.
- In the
Project
panel, right-clickAssets
and selectCreate
|Folder
. - Name the new folder
Audio
. - Right-click the
Audio
folder and selectImport Package
|Custom Package
. - Navigate to the
cucumber_man_audio.unitypackage
file available from the publisher's site for this book. You should see the following screenshot pop up in...