private void DetermineSoundButtonStatus() { if (GameManager.Instance.PlayingAudio) { soundButtonText.text = "Sound: On"; } else { soundButtonText.text = "Sound: Off"; SFX.MuteAll(); } }
public void EnableSound() { if (GameManager.Instance.PlayingAudio) { GameManager.Instance.PlayingAudio = false; SFX.MuteAll(); DetermineSoundButtonStatus(); return; } GameManager.Instance.PlayingAudio = true; SFX.UnMuteAll(); DetermineSoundButtonStatus(); }