void OnTriggerExit(Collider other) { if (other.gameObject.tag == "Refugee") { var controller = other.gameObject.GetComponent <RefugeeController>(); Facility.LeadToExit(other.gameObject); // we cannot consider only real clients without ones passing by, so it may turn negative if (Facility.ClientsNum > 0) { Facility.ClientsNum--; } } }