コード例 #1
0
    public void InitTest()
    {
        EncryptedPlayerPrefs.DeleteKey("DataExist");
        EncryptedPlayerPrefs.DeleteKey("Strength");
        EncryptedPlayerPrefs.DeleteKey("Agility");
        EncryptedPlayerPrefs.DeleteKey("Constitution");
        EncryptedPlayerPrefs.DeleteKey("Intelligence");
        EncryptedPlayerPrefs.DeleteKey("RemainPoint");
        EncryptedPlayerPrefs.DeleteKey("CurrentADLevel");
        EncryptedPlayerPrefs.DeleteKey("CurrentHealthLevel");
        EncryptedPlayerPrefs.DeleteKey("CurrentDefenseLevel");
        EncryptedPlayerPrefs.DeleteKey("CurrentSlot");
        EncryptedPlayerPrefs.DeleteKey("Gold");
        EncryptedPlayerPrefs.DeleteKey("Silver");

        for (int i = 0; i < 15; i++)
        {
            EncryptedPlayerPrefs.DeleteKey("ItemSlot" + i);
        }

        for (int i = 0; i < 7; i++)
        {
            EncryptedPlayerPrefs.DeleteKey("EquipSlot" + i);
        }

        for (int i = 0; i < 5; i++)
        {
            EncryptedPlayerPrefs.DeleteKey("TowerType" + i);
        }

        EncryptedPlayerPrefs.DeleteKey("MaxClearStage");
        for (int i = 0; i < userInfo.stageClearInfo.Length; i++)
        {
            EncryptedPlayerPrefs.DeleteKey("StageClearInfo" + i);
        }

        EncryptedPlayerPrefs.DeleteKey("PicturePath");


        EncryptedPlayerPrefs.SetString("EquipSlot" + 0, "JACK1");
        EncryptedPlayerPrefs.SetString("ItemSlot" + 0, "HAND1-1");

        EncryptedPlayerPrefs.DeleteKey("killEnemyCount");
        EncryptedPlayerPrefs.DeleteKey("stageClearCount");
    }