Road TO Dev — Boss Music

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

--

--

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!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
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!