I am working on a 2D game where when the player goes in a direction they will go all the way to the collider there and then stop I am plaining to use RaycastHit.distance to get how far away they are and move the player that much but I cannot figure out how to receive the distance as a variable