private void FixedUpdate()
{
CheckGround();
if (!isAttacking && isGrounded && Input.GetButtonDown("Jump"))
Jump();
}
private void Jump()
{
if (Input.GetButtonDown("Jump")) State = States.jump;
rb.AddForce(Vector3.up * jumpForce, ForceMode2D.Impulse);
jumpSound.Play();
}