public void PushOrangeJiuceButton() { var cup = GetCup(); if (cup != null) { cup.SetDrinkType(ProductType.OrangeJuice); } StartWorking(DrinkColor.GetDrinkColor(ProductType.OrangeJuice)); }
public void PushIceTeaButton() { var cup = GetCup(); if (cup != null) { cup.SetDrinkType(ProductType.IceTea); } StartWorking(DrinkColor.GetDrinkColor(ProductType.IceTea)); }
public void SetDrinkType(ProductType productType) { m_productType = productType; m_drinkLevelMaterial.color = DrinkColor.GetDrinkColor(productType); }