示例#1
0
    public void PushOrangeJiuceButton()
    {
        var cup = GetCup();

        if (cup != null)
        {
            cup.SetDrinkType(ProductType.OrangeJuice);
        }

        StartWorking(DrinkColor.GetDrinkColor(ProductType.OrangeJuice));
    }
示例#2
0
    public void PushIceTeaButton()
    {
        var cup = GetCup();

        if (cup != null)
        {
            cup.SetDrinkType(ProductType.IceTea);
        }

        StartWorking(DrinkColor.GetDrinkColor(ProductType.IceTea));
    }
示例#3
0
文件: Cup.cs 项目: asmCode/fastfood
 public void SetDrinkType(ProductType productType)
 {
     m_productType = productType;
     m_drinkLevelMaterial.color = DrinkColor.GetDrinkColor(productType);
 }