public static void SetCountryCode(string countryCode, CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN) { countryCode = 1.ToString(); PlayerPrefs.SetString("PlayerCountryCode", countryCode); PlayerPrefs.Save(); if (DataMng.Instance().RespDataUS_PlayerInfo != null) { DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.countryCode = countryCode; } }
public static string GetSystemCountryCode(CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN) { SystemLanguage systemLanguage = Application.systemLanguage; if (CountrySetting.SystemLangCountryCode.ContainsKey(systemLanguage)) { return(((int)CountrySetting.SystemLangCountryCode[systemLanguage]).ToString()); } int num = (int)defaultCountryCode; return(num.ToString()); }
public static string GetCountryPrefix(CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN) { string countryCode = CountrySetting.GetCountryCode(defaultCountryCode); return(CountrySetting.CountryPrefix[int.Parse(countryCode)]); }
public static string GetCountryCode(CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN) { return(1.ToString()); }