public Rigidbody rb; public float jumpForce; void Awake() { rb = GetComponent<Rigidbody>(); } void Update() { if(Input.GetKeyDown(KeyCode.Space)) { rb.AddForce(0, 10 * jumpForce * Time.deltaTime, 0) } }