public void OnCustomerDied(CustomerDeathEvent customerDeath) { //Debug.Log("customersWandering size: " + ListOfCustomersWandering.Count); //NewCustomer customer = ListOfCustomersWandering[0]; NewCustomer customer = customerDeath.DeadCustomerGO.GetComponent <NewCustomer>(); ListOfCustomersWandering.Remove(customer); //add customer to OutsidePool list gs.AddCustomer(customer); }