Change volume of objects with a tag

Hi!

I am making a slider were you can disable the music but you can also choose what music you want, so I have made 5 different GameObjects to get the music working. But now I want to make a slider in the options to disable the music. So the easiest way to do this is to change the volume of all the objects with that tag. But I don’t know how to do it. If you can tell me how to do it, please do!

Thanks

Try using events.
The controller object should broadcast the event when there is a change made and the music GameObjects should subscribe their volume changing methods to the event.

http://unity3d.com/learn/tutorials/modules/intermediate/scripting/events