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); }
public void LanguageChoose(bool right) { PlayerPreference.LanguageIndex += right? 1: -1; languageText.text = MultiLanguageMgr.GetLanguageName(PlayerPreference.Language); PlayerPreference.ApplyLanguage(); }