Exemplo n.º 1
0
    public static void SwitchSoundSystemMode()
    {
        var currentValue = PlayerPrefsHelper.GetEnum(SoundSystemValueKey, SoundSystemConfig.MusicAndSound);

        currentValue++;
        if ((int)currentValue > maximumSoundSystemValue)
        {
            currentValue = SoundSystemConfig.MusicAndSound;
        }
        PlayerPrefsHelper.SaveEnum(SoundSystemValueKey,
                                   currentValue);
    }
Exemplo n.º 2
0
 public static SoundSystemConfig GetSoundSystemMode()
 {
     return(PlayerPrefsHelper.GetEnum(SoundSystemValueKey, SoundSystemConfig.MusicAndSound));
 }