Esempio n. 1
0
    private void Awake()
    {
        Screen.SetResolution(1920, 1080, true, 0);
        EncryptedPlayerPrefs.keys    = new string[5];
        EncryptedPlayerPrefs.keys[0] = "fgfkjldjds";
        EncryptedPlayerPrefs.keys[1] = "tu849tu24";
        EncryptedPlayerPrefs.keys[2] = "40kf0rk";
        EncryptedPlayerPrefs.keys[3] = "jg05ji";
        EncryptedPlayerPrefs.keys[4] = "erjeioj";

        if (!EncryptedPlayerPrefs.HasKey("Ending1"))
        {
            for (int i = 1; i <= 20; i++)
            {
                EncryptedPlayerPrefs.SetInt("Ending" + i, 0);
                EncryptedPlayerPrefs.SaveEncryption("Ending" + i, "int", "littlebrother");
            }
        }
    }