예제 #1
0
 void Reset()
 {
     CustomerLevel.Clear();
     CollectedRecipe.Clear();
     CollectedSubmaterial.Clear();
     Birdcoin = 0;
     PlayerPrefs.DeleteAll();
 }
예제 #2
0
    void LoadRecipe()
    {
        int count = PlayerPrefs.GetInt(nameof(RecipeCount));

        CollectedRecipe.Clear();
        for (int i = 0; i < count; i++)
        {
            string id = PlayerPrefs.GetString($"{nameof(CollectedRecipe)}{i}");
            CollectedRecipe.Add(id);
        }
    }