Пример #1
0
 private void HandleCustomerReach(CustomerBehaviour customer)
 {
     customer.StartWait(t =>
     {
         OnCustomerOverwait.Invoke(t);
         ExitCustomer(t);
     });
 }
Пример #2
0
    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);
    }
Пример #3
0
 public void OnCustomerEvent(MonsterKilledEventArgs e)
 {
     CustomerEvent?.Invoke(this, e);
 }