public float gravity; Vector3 velocity; public CharacterController controller; void Update() { velocity.y += gravity * Time.deltaTime; controller.Move(velocity * Time.deltaTime); }