Пример #1
0
    /// <summary>
    /// Called when an apprentice selects an ingredient to add to the juice
    /// </summary>
    public void IngredientSelected(Text ingredientName)
    {
        RG.AddChosenIngredient(ingredientName.text);

        // If we have completed this recipe, we need to set our confirmation screen to take play back to the chef's screen
        if (RG.CheckRecipeCompletion())
        {
            SetConfirmScreenButton(0);
            GenerateAndSetNewRecipe(); // Let's also begin a new recipe here!
        }
    }