Ejemplo n.º 1
0
    public void ApplyPreference()
    {
        musicBar.fillAmount = PlayerPreference.MusicVolume;
        soundBar.fillAmount = PlayerPreference.SoundVolume;
        Vector2 _resolution = PlayerPreference.Resolution;

        resolutionText.text = string.Format("{0} x {1}", _resolution.x, _resolution.y);
        fullscreenMultiLan.ChangeId(PlayerPreference.Fullscreen ? 8 : 9);
        languageText.text = MultiLanguageMgr.GetLanguageName(PlayerPreference.Language);
    }
Ejemplo n.º 2
0
 public void LanguageChoose(bool right)
 {
     PlayerPreference.LanguageIndex += right? 1: -1;
     languageText.text = MultiLanguageMgr.GetLanguageName(PlayerPreference.Language);
     PlayerPreference.ApplyLanguage();
 }