August 2018
Intermediate to advanced
794 pages
28h 4m
English
You add two GameObjects to the scene, containing AudioSources linked to music and dying sound clips. You created a C# script class, DelayedSoundManager, and added an instance to an empty GameObject. You associated the two AudioSources in your GameObjects with the two public variables in your scripted component.
You created two buttons:
The DelayedSoundManager.ACTION_PlayMusicNow() method immediately sends a Play() message to the audio source linked to the Pacman Opening Song AudioClip. However, the DelayedSoundManager.PlayDiesSoundAfterDelay() ...
Read now
Unlock full access