public void setPizzaCard() { if (PizzaInfoActive) { PizzaInfo.SetActive(false); PizzaInfoActive = false; } }
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); }
public void SetPizzaInfo(PizzaInfo pizzainfo) { PizzaInfo = pizzainfo; NotifyStateChanged(); }