public void AddToInventory(string ingredient, Sprite inventoryImage) { int usedIngredientCount = playerInventoryData.AddIngredient(ingredient, inventoryImage); if (usedIngredientCount > 0) { dishSpeedGainRemainder += usedIngredientCount * INGREDIENT_SPEED_GAIN; } }
public void AddToInventory(string ingredient) { addToExtraWeight(1); int usedIngredientCount = playerInventoryData.AddIngredient(ingredient); if (usedIngredientCount > 0) { setBoost = true; reduceExtraWeight(usedIngredientCount); playPlayerAnimation("Complete"); audioController.PlayRecipeCompletion(); } else { playPlayerAnimation("Collect"); audioController.PlayItemCollection(); } }