Ray2D jumpRay = new Ray2D(transform.position, transform.right);
Debug.DrawRay(transform.position, transform.right, Color.yellow);
RaycastHit2D hit;
hit = Physics2D.Raycast(transform.position, transform.right, 5f);
if (hit.collider.gameObject.name == "Player");
{
Debug.Log("hitted");
}