Ejemplo n.º 1
0
    void OnCupboardItemSelected(IngredientType ingredient)
    {
        CookingMain.AddToStew(ingredient);
        CookingMain.CupboardList.Remove(ingredient);

        SceneManager.Instance.IncrementScene();
        MakeButtons(); // Reset the button list without the selected item
    }
Ejemplo n.º 2
0
    public void PickAnItemForTheStew()
    {
        IngredientType picked = CookingMain.CupboardList[Random.Range(0, CookingMain.CupboardList.Count)];

        CookingMain.AddToStew(picked);
        UIManager.textReplaceIngredient = picked;

        CookingMain.CupboardList.Remove(picked);
        CupboardList.MakeButtons();
    }