private void Update()
{
//Ray2D jumpRay = new Ray2D(transform.position, transform.right);
RaycastHit2D hit;
hit = Physics2D.Raycast(transform.position, transform.right, 10f);
//Debug.DrawRay(transform.position, transform.right, Color.yellow);
if (hit.collider != null)
{
Debug.Log(hit.transform.gameObject.name);
}
}