Commit a3fac964 authored by JEthan's avatar JEthan
Browse files

Kleine veränderungen an der Laustärke regelung

parent 575b1c1b
......@@ -16,9 +16,12 @@ public class Scr_OptionMenu : MonoBehaviour
public void SetVolume(float volume)
{
audioMixer.SetFloat("Volume", volume);
audioMixer.SetFloat("Volume", volume);
this.volume = volume;
}
......@@ -31,7 +34,7 @@ public class Scr_OptionMenu : MonoBehaviour
print(volume);
if (mute == false)
{
audioMixer.SetFloat("Volume", -80);
audioMixer.SetFloat("Volume", -80f);
mute = true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment