// Update is called once per frame void Update() { CharacterMovement.AddMovementInput(Vector3.right * Input.GetAxis(MovementInputAxis)); if (Input.GetAxis(JumpInputAxis) > 0 != _jumpPressed) { _jumpPressed = Input.GetAxis(JumpInputAxis) > 0; if (_jumpPressed) { CharacterMovement.Jump(); } } }