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); } }
public void SetRecipe(string id) => CollectedRecipe.Add(id);