public void OnTriggerExit2D(Collider2D collision) { if (collision.CompareTag("PlayerBottom")) { _fullRail.PlayerExitsRailPart(); } }