Move object 01 unit by touch input

I want to move objects exactly in one unit. When the user touches the right side it moves 01 unit on right and when pressing the left side it should move one unit left. I tried the below script but was unable to achieve my goal. If anyone knows about it kindly guide me.

void Update()
    {
        touchPosition = Camera.main.ScreenToWorldPoint(touch.position);
        if (Input.GetButtonDown("Jump") || Input.GetMouseButtonDown(0))
        {
            if (touchPosition.x > 0)
            {
                transform.Translate(1f, 0, 0);
            }
            else if (touchPosition.x < 0)
            {
                transform.Translate(-1f, 0, 0);
            }
        }
    }

Hi! There’s no real need to convert the touch into world space, if you stay in screen space you can do something like this:

void Update()
{
    Touch touch = Input.GetTouch(0);
    
    if (Input.GetButtonDown("Jump") || Input.GetMouseButtonDown(0))
    {
        if (touch.position.x > Screen.width / 2)
        {
            transform.Translate(1f, 0, 0);
        }
        else if (touch.position.x < Screen.width / 2)
        {
            transform.Translate(-1f, 0, 0);
        }
    }
}

Let me know if this works!