Exemplo n.º 1
0
    public void SaveAd(bool forceSave = false)
    {
        GCryptPlayerPrefs.SetBool("showAd", showAd);

        if (forceSave)
        {
            GCryptPlayerPrefs.Save();
        }


        showAd = GCryptPlayerPrefs.GetBool("showAd", true);
        Debug.Log("RcSaveData:SaveAd() showAd=" + showAd);
    }
Exemplo n.º 2
0
    public bool Load()
    {
        // version = GCryptPlayerPrefs.GetString("version", Application.version);

        gold = GCryptPlayerPrefs.GetInt("gold", 1000);
        gem  = GCryptPlayerPrefs.GetInt("gem", 0);

        sound = GCryptPlayerPrefs.GetBool("sound", true);
        rated = GCryptPlayerPrefs.GetBool("rated", false);

        bestScore = GCryptPlayerPrefs.GetInt("bestScore", 0);
        lastScore = GCryptPlayerPrefs.GetInt("lastScore", 0);

        showAd     = GCryptPlayerPrefs.GetBool("showAd", true);
        timeReward = GCryptPlayerPrefs.GetString("timeReward", null);

//		CollectionManager.Inst.Load ();
        return(false);
    }