private void CheckJump() { if (!controller.isGrounded || player.InputDisabled) { return; } if (playerInput.IsJumpDown()) { isJumping = true; } inputVelocity.y = isJumping ? Mathf.Sqrt(2f * jumpHeight * -GlobalConstants.GRAVITY) : inputVelocity.y; }