private void OnTriggerStay(Collider other) { PortalTraveller travel = other.GetComponent <PortalTraveller>(); if (travel == null) { return; } travel.AttemptTeleport(); }