private void HandleCustomerReach(CustomerBehaviour customer) { customer.StartWait(t => { OnCustomerOverwait.Invoke(t); ExitCustomer(t); }); }
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); }
public void OnCustomerEvent(MonsterKilledEventArgs e) { CustomerEvent?.Invoke(this, e); }