2D Shooter: Powerup Sound Effects
Aug 4, 2021
Objective: Add sound when the powerups are collected.
For these we’re not going to add an Audiosource component. Instead, we’re going to create a variable in the powerup script for an Audioclip. Make sure all three powerups have the audio clip you want attached to this variable.
Now we’re going to use a handy command that will play this clip at the point where the powerup is collected.
And that’s all that is to it!