Conteúdo do Curso
Unity for Beginners
Unity for Beginners
Add Sounds in Game
Begin by dragging and dropping your sound file into the assets folder. For example, in this scenario, we've dragged a sound file that plays when the player wins.
After that, drag the audio clip from the assets folder into the effects list within the sounds manager.
Now, add the following line to the winning condition.
Once the player wins, the sound effect corresponding to element number 1 in the list will be played.
You can add more sound effects with this way, and everything will work perfectly.
What’s next:
Next we will start polishing our game and makes it look better by improving the game visuals and using the particle system.
Obrigado pelo seu feedback!