public void ExitCustomer(CustomerBehaviour customer) { int entryIndex = customer.ID; _busy[entryIndex] = false; _customerPerEntry[entryIndex] = null; customer.SetMovement(SpawnPoint, HandleCustomerOut); }
private void SetupCustomer(GameObject customerObject, int entryIndex) { CustomerBehaviour custBehaviour = customerObject.GetComponent <CustomerBehaviour>(); _customerPerEntry[entryIndex] = custBehaviour; custBehaviour.ID = entryIndex; custBehaviour.SetMovement(EntryPoints[entryIndex], HandleCustomerReach); OnCustomerSpawn.Invoke(custBehaviour); }