Road TO Dev — Boss Music

Rob Smith
Aug 5, 2021

Objective: Setup the boss to play music at different stages

As with previous audio articles I’ve setup a youtube video to show it enjoy!

Step 1: Disable current background music. For this I’ve created a tag for the background music object and wrote a script for destroying it.

Step 2: Find the tag on the boss at the start

Step 3: Setup the variables for the boss music and array

Step 4: Make sure to create an audio source on the boss root prefab

Step 5: Attach the audio clips into the array on the boss that you want

Step 6: Setup the different stages to play these audio clips and make sure to activate the Turn Off script on the background music in stage one

--

--

Rob Smith

Hi there! I am currently on the path to learn how to become a unity developer and will be documenting my journey as best as I can here. Thanks for looking!