How do i make my 2D character jump by touching the screen?

I have a code that lets the character jump with the spacebar but I would like it to jump with a touch of the screen.

There are many ways to do this. You can start by adding a rigidbody and capsule collider to your gameobject. (provided you use C# for coding)The coding could go like this:private Rigidbody rb; pubic float jumpSpeed = 10.0f; void Start () {

	rb = GetComponent<Rigidbody>();


		rb.AddForce(transform.up * jumpSpeed);