Ejemplo n.º 1
0
        public void AddToKitchenDoor(NewCustomer customer)
        {
            CustomerEnteringKitchen.Add(customer);
            NewPoint point = SingleKitchenDoorPoint[0];

            customer.MoveTo(point);
        }
Ejemplo n.º 2
0
        // 2. Each x seconds (as defind in GameStarter script) 1 customer enters the kitchen, moves to a pre defined free random point and stops
        public void AddCustomer(NewCustomer customer)
        {
            ListOfCustomersWandering.Add(customer);

            bool freePointFound = false;

            while (!freePointFound)
            {
                NewPoint point = ListOfKitchenMovePoints[Random.Range(0, 10)];

                if (point.Free)
                {
                    customer.MoveTo(point);
                    point.Free     = false;
                    freePointFound = true;
                }
            }
        }
Ejemplo n.º 3
0
 public void AddCustomer(NewCustomer customer)
 {
     ListOfCustomersInQ.Add(customer);
     customer.MoveTo(ListOfPoints[ListOfCustomersInQ.IndexOf(customer)]);
 }