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

            customer.MoveTo(point);
        }
Beispiel #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;
                }
            }
        }
 public void AddCustomer(NewCustomer customer)
 {
     ListOfCustomersInQ.Add(customer);
     customer.MoveTo(ListOfPoints[ListOfCustomersInQ.IndexOf(customer)]);
 }