コード例 #1
0
    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");
    }
コード例 #2
0
    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");
    }