RaycastHit2D hit = Physics2D.Raycast(orgine, direction);
if (hit.collider != null)
{
Debug.DrawRay(orgine, hit.point - orgine);
}

あってるかどうかまでは知らない