I want the player to be able to lower/raise the sound volume in the options.
So I created a global variable called SoundVol. If the player clicks on the + Button, SoundVol is raised, if the player clicks on the - Button, SoundVol is lowered.
When the player enters the game after he modified the soundvolume, the sounds have still the same volume. I can't here a difference (Max SoundVol is 20, min SoundVol is -20).
Here is the code:
How to fix this?