So i have a options button , and when you press you have the option to change sound volume , i have made the slider and everything but i dont know how to change all sound according to it , ad by the sounds of it its REALLY complex and i need the best help i can get . please dont be harsh as i am new to java ( i have only been doing it for about half a year )
var Msensitivity : float = 5;// dont worry about this
var Volume: float = 5;
function OnGUI () {
Msensitivity = GUI.HorizontalSlider (Rect (800, 175, 400, 25), Msensitivity, 0.0, 10);//dont worry about this
Volume = GUI.HorizontalSlider (Rect (800, 250, 400, 25), Volume, 0.0, 10);
}