What can I do to jump when I move with a virtual joystick?

My game is 3-rd person for android with virtual joystick. I have a problem. When I’m moving I can’t jump at the same time.
This is my script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{

public float movementSpeed = 3;
public float jumpForce = 300;
public float timeBeforeNextJump = 1.2f;
private float canJump = 0f;
Animator anim;
Rigidbody rb;
public Joystick joystick;

void Start()
{
    anim = GetComponent<Animator>();
    rb = GetComponent<Rigidbody>();
}

void Update()
{
    ControllPlayer();
    //
    
    //
}

void ControllPlayer()
{
   

    

    float moveHorizontal = joystick.Horizontal;
    float moveVertical = joystick.Vertical;
    
    Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
    
    if (movement != Vector3.zero)
    {
        transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(movement), 0.15f);
        anim.SetInteger("New Int", 1);
    }
    else {
        anim.SetInteger("New Int", 0);
    }

    transform.Translate(movement * movementSpeed * Time.deltaTime, Space.World);

     

    if (Input.GetMouseButtonDown(0) && Time.time > canJump || Input.GetButtonDown("Jump") && Time.time > canJump)
    {
            rb.AddForce(0, jumpForce, 0);
            canJump = Time.time + timeBeforeNextJump;
            anim.SetTrigger("jump");
    }    
}

void FixedUpdate()
{
    if (rb.position.y < -0.5f)
    {
        FindObjectOfType<GameManager>().EndGame();
    }
}

}

Ok well to handle touches you can find a lot of info in the documentation:



Input.getTouch(0) will return the first touch and (1) will give you the second touch as Touch structs. I can’t really explain it better than the documentation, but for touch gestures I personally use a free asset provided and maintained by prime31 called TKtouchkit which you can find on GitHub and it comes with a lot of built in gestures, but you can extend it quite easily to make tailored gestures for your specific case