private void OnTriggerExit(Collider other) { if (other.GetComponent <BlockBehaviour>()) { BlockBehaviour behaviour = other.GetComponent <BlockBehaviour>(); behaviour.DeActivate(); } }