コード例 #1
0
 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;
     }
 }
コード例 #2
0
    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());
    }
コード例 #3
0
    public static string GetCountryPrefix(CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN)
    {
        string countryCode = CountrySetting.GetCountryCode(defaultCountryCode);

        return(CountrySetting.CountryPrefix[int.Parse(countryCode)]);
    }
コード例 #4
0
 public static string GetCountryCode(CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN)
 {
     return(1.ToString());
 }