Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Updated music volume and sfx volume values passed on setup #517

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -38,7 +38,7 @@ private void OnEnable()
}
private void OnDisable()
{
ResetVolumes(); // reset volumes on disable. If not saved, it will reset to initial volumes.
ResetVolumes(); // reset volumes on disable. If not saved, it will reset to initial volumes.
_musicVolumeField.OnNextOption -= IncreaseMusicVolume;
_musicVolumeField.OnPreviousOption -= DecreaseMusicVolume;
_saveButton.Clicked -= SaveVolumes;
Expand All @@ -52,8 +52,8 @@ private void OnDisable()
public void Setup(float musicVolume, float sfxVolume, float masterVolume)
{
_masterVolume = masterVolume;
_musicVolume = sfxVolume;
_sfxVolume = musicVolume;
_musicVolume = musicVolume;
_sfxVolume = sfxVolume;

_savedMasterVolume = _masterVolume;
_savedMusicVolume = _musicVolume;
Expand Down