Unity Tanks Game Lesson 4 Add Audio Mixing - jasonweibel/HyperStream-Unity GitHub Wiki
Hyperstream : Unity Tanks Game - Lesson 4 - Add Audio Mixing
Enable Engine Audio Code
-
Open TankMovement.cs file in Visual Studio
-
Uncomment EngineAudio method on linew 83 - 108.

-
Uncomment the call of the EngineAudio method on line 79.

-
Uncomment the setting of the original pitch variable.

Enable Explosion Audio Code
-
Open ShellExplosion.cs file in Visual Studio
-
Uncomment line 62

Add Background Music
-
Select GameManager
-
Add Audio --> Audio Source component
-
Change AudioClip to Background Music

-
Change output to Music

-
Check the Play On Awake checkbox
-
Check the Loop checkbox
-
Play game.
-
Have students experiment with changing priority, volume, pitch, and other settings.
Finished Background Music Audio Source Component

Add Tank Engine Audio
-
Select Tank Prefab

-
Add Audio Source Component
-
Set Audio Clip to EngineIdle

-
Set ouput to Driving

-
Check the Play On Awake and Loop check boxes
Finished Tank Engine Audio Source Component


Add Tank Impact Audio Component

Attachments:
image2017-8-11_14-55-34.png (image/png)
image2017-8-11_14-56-16.png (image/png)
image2017-8-11_14-56-38.png (image/png)
image2017-8-11_14-57-46.png (image/png)
image2017-8-11_14-59-6.png (image/png)
image2017-8-11_14-59-34.png (image/png)
image2017-8-11_15-0-11.png (image/png)
image2017-8-11_15-1-25.png (image/png)
image2017-8-11_15-1-59.png (image/png)
image2017-8-11_15-2-29.png (image/png)
image2017-8-11_15-3-12.png (image/png)
image2017-8-11_15-3-33.png (image/png)
image2017-8-11_15-4-10.png (image/png)