private void ToggleMute(bool isMuted) { audioSource.volume = isMuted ? 0f : audioSettings != null?audioSettings.GetMusicVolume() : 1f; }