/// <summary> /// /// </summary> private void RecipeLoadState(List <Recipe_Save_State> load, List <GameObject> purchasable) { for (int i = 0; i < purchasable.Count(); i++) { RecipeData item = purchasable[i].GetComponent <RecipeData>(); Recipe_Save_State load_sate = load[i]; item.recipe.Unlocked = load_sate.Unlocked; item.Unlock(); } }