Esempio n. 1
0
 public void setPizzaCard()
 {
     if (PizzaInfoActive)
     {
         PizzaInfo.SetActive(false);
         PizzaInfoActive = false;
     }
 }
Esempio n. 2
0
 public void setPizzaInfo()
 {
     if (!PizzaInfoActive)
     {
         PizzaInfo.SetActive(true);
         PizzaInfoActive = true;
     }
 }
        protected override PizzaInfo CreatePizza(string type)
        {
            PizzaInfo pizza = null;

            switch (type)
            {
            case "cheese":
                pizza = new NYCheesePizzaInfo();
                break;

            default:
                break;
            }
            return(pizza);
        }
        protected override PizzaInfo CreatePizza(string type)
        {
            PizzaInfo pizza = null;

            switch (type)
            {
            case "cheese":
                pizza      = new CheesePizzaInfo(IngredientFactory);
                pizza.Name = "New York Style Cheese Pizza";
                break;

            case "clam":
                pizza      = new ClamPizzaInfo(IngredientFactory);
                pizza.Name = "New York Style Clam Pizza";
                break;

            case "pepperoni":
                pizza      = new PepperoniPizzaInfo(IngredientFactory);
                pizza.Name = "New York Style Pepperoni Pizza";
                break;
            }
            return(pizza);
        }
Esempio n. 5
0
 public void SetPizzaInfo(PizzaInfo pizzainfo)
 {
     PizzaInfo = pizzainfo;
     NotifyStateChanged();
 }