So I have a pause menu set up. In it is a slider for volume control. When I use a mouse to click on it, I have a master audio sound effect play (via component script). However, it only detects if the value changes and not if it was more or less. This means the sound played is always the same. I want to be able to play a higher sound when increasing the sound and a lower sound when decreasing the volume. 2 different sound files.
So I was wondering: Can you determine the float variable of the mouse click? if so, I could store it in a variable and compare the 2. Also, I need to know how to detect the changed event. That way I can look for the mouse click, compare the 2 floats and play the right sound.