private void OnTriggerExit(Collider other) { PortalTraveller travel = other.GetComponent <PortalTraveller>(); if (travel == null) { return; } travel.ExitPortal(this); }