Exemplo n.º 1
0
 public static int GameCenter_get_login_count() =>
 PlayerPrefsEncrypt.GetInt("gamecenter_login_count", 0);
Exemplo n.º 2
0
    public LanguageManager()
    {
        Dictionary <int, string> dictionary = new Dictionary <int, string> {
            {
                1,
                "I"
            },
            {
                2,
                "II"
            },
            {
                3,
                "III"
            },
            {
                4,
                "IV"
            },
            {
                5,
                "V"
            },
            {
                6,
                "VI"
            },
            {
                7,
                "VII"
            },
            {
                8,
                "VIII"
            },
            {
                9,
                "IX"
            },
            {
                10,
                "X"
            },
            {
                11,
                "XI"
            },
            {
                12,
                "XII"
            }
        };

        this.mStageIndexs   = dictionary;
        this.m_LanguageList = LocalModelManager.Instance.Language_lauguage.GetBeanDic();
        int @int = PlayerPrefsEncrypt.GetInt("LocalLanguage", -1);

        if (@int < 0)
        {
            this.CurrentLanguage = Application.systemLanguage;
            if (this.CurrentLanguage == SystemLanguage.Chinese)
            {
                this.CurrentLanguage = SystemLanguage.ChineseSimplified;
            }
        }
        else
        {
            this.CurrentLanguage = (SystemLanguage)@int;
        }
    }
Exemplo n.º 3
0
 public PrefDataInt(string name) : base(name)
 {
     this.value = PlayerPrefsEncrypt.GetInt(base.name, 0);
 }