void CreateTicket(OrderScreen screen) { List <string> obj = RandomMeal(); //random meal from the menu MealTicket ticket = new MealTicket(obj[0], TheFood(obj)); //storing information in seperate class ticket.SetScreen(screen); StartCoroutine(ticket.TickerTimer(screen.TimeText())); //starting the timer mealTickets.Add(ticket); DisplayMeal(ticket.TheFoodInOrder(), ticket.GetMealName(), screen.GetText()); //displaying the meal sendAreas[(screen.screenNo) - 1].SetTicket(ticket); //assifning the ticket to the correct send area screen.SetUse(true); audioManager.PlaySound("Bell"); }
public void CreateTicket(OrderScreen screen) { List <string> obj = RandomMeal(); MealTicket ticket = new MealTicket(obj[0], TheFood(obj)); //storing information in seperate class ticket.SetScreen(screen); //StartCoroutine(ticket.TickerTimer(screen.TimeText())); mealTickets.Add(ticket); DisplayMeal(ticket.TheFoodInOrder(), ticket.GetMealName(), screen.GetText()); sendAreas[(screen.screenNo) - 1].SetTicket(ticket); screen.SetUse(true); audioManager.PlaySound("Bell"); }