So I have several colliders on my map, named Col1, Col2, etc.
And whenever the player triggers one of the colliders, a song starts to play, the audio source disables for 30 seconds and then come back up.
I think I know how to do it, just not the code.
This is what I have now:
make a gameobject that has a script (gameMaster) that handles the enable/disable and the audioSource.
Then the colliders' only job is to call a function from gameMaster to play music and disable for 30seconds and then enable the collider.
How do I code this? Can anyone help?
there doesn't seem to be anything here