Going further
If you are adventurous, try expanding your project to add the following features:
- Add sound effects to other events
- Tie sound effects to animations through animation events
- Instead of just muting and unmuting your sound and music, add a volume control by adjusting the
Volume
parameter on theAudio Source
component
Get Mastering Unity 2D Game Development - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.