예제 #1
0
 public void CreateSaladFromIngredient()
 {
     if (activeSalad == null)
     {
         activeSalad = new Salad();
     }
     activeSalad.AddIngredient(ingredient);
     ingredient = new Vegetable();
 }
예제 #2
0
    public void StartCustomer()
    {
        canAcceptFood = true;
        renderedCustomer.SetActive(true);
        order = new Salad();
        var ingredients = RandomUtil.CreateRandomCombination();

        foreach (var ingredient in ingredients)
        {
            order.AddIngredient(ingredient);
        }
        if (attachedBar != null)
        {
            attachedBar.StartProgressBar(GameConstants.WaitTime * GameConstants.RecipeComplexityScale * order.GetIngredientCount());
        }
    }