public static void SwitchSoundSystemMode() { var currentValue = PlayerPrefsHelper.GetEnum(SoundSystemValueKey, SoundSystemConfig.MusicAndSound); currentValue++; if ((int)currentValue > maximumSoundSystemValue) { currentValue = SoundSystemConfig.MusicAndSound; } PlayerPrefsHelper.SaveEnum(SoundSystemValueKey, currentValue); }