public void Construct(IAlchemyRecipe alchemyRecipe) { Recipe = alchemyRecipe; this.nameText.text = alchemyRecipe.Name; foreach (var ingredient in alchemyRecipe.Ingredients) { var ingredientView = Instantiate(this.ingredientPrefab, this.ingredientContainer); ingredientView.Construct(ingredient); } }
private void UpdatePossibleResult() { this.alchemyRecipe = this.alchemyRecipes.FirstOrDefault(r => r.Match(this.items)); ShowPossibleResult(); }