Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 private void UpdatePossibleResult()
 {
     this.alchemyRecipe = this.alchemyRecipes.FirstOrDefault(r => r.Match(this.items));
     ShowPossibleResult();
 }