Settings() { if (!PlayerPrefs.HasKey("Lang")) { CurrentLanguage = Language.ENG; PlayerPrefs.SetInt("Lang", (int)CurrentLanguage); } else { CurrentLanguage = (Language)PlayerPrefs.GetInt("Lang"); } }
public void ChageLanguage(Language lang) { CurrentLanguage = lang; }