I did what I wanted with "space" button but when I turn it to touch it goes further. Code (CSharp): if (Input.touchCount == 1) { gameObject.GetComponent<Rigidbody>().AddForce(new Vector3(0, 1, 0) * jumpSpeed, ForceMode.Impulse); }
If that is in your Update function then every single frame that you have one touch, it will add more impulse. If you store the previous frame's touch count and compare it with this frame's touchcount, then you can instead only do the jump when you have one touch this frame, and zero touches last frame.