Пример #1
0
    public void ExitCustomer(CustomerBehaviour customer)
    {
        int entryIndex = customer.ID;

        _busy[entryIndex]             = false;
        _customerPerEntry[entryIndex] = null;
        customer.SetMovement(SpawnPoint, HandleCustomerOut);
    }
Пример #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);
    }