public static void AddIngredient(this Recipe recipe, string itemName, int quantity, int plusLevel = 0) { var recipeIngredient = new RecipeIngredient(itemName, quantity); recipeIngredient.Init(plusLevel); recipe.AddIngredient(recipeIngredient); }
public static void Init(this RecipeIngredient recipeIngredient) { recipeIngredient.Init(GameManager.Instance.GetCurrentGamePlusLevel()); }