コード例 #1
0
    private void IngredientChanged(int arg0)
    {
        var tempMenuItem = new MenuItem();
        tempMenuItem.MeatType = ConvertDropdownValueToIngredient(meatDropdown, IngredientDB.Meats);
        tempMenuItem.VegetableType = ConvertDropdownValueToIngredient(vegetableDropdown, IngredientDB.Vegetables);
        tempMenuItem.SauceType = ConvertDropdownValueToIngredient(sauceDropdown, IngredientDB.Sauces);

        costLabel.text = tempMenuItem.GetProductionCost().ToString();

        menuItemIsSaved = false;
    }