HELPwhen i eat fruit my character doesnt jump

when i eat fruit my character doesnt jump and i have to go to another platform to jump again

my fruit script:

{

private void OnTriggerEnter2D(Collider2D collision)
{
    if (collision.CompareTag("Player"))
    {
        GetComponent<SpriteRenderer>().enabled = false;
        gameObject.transform.GetChild(0).gameObject.SetActive(true);
        Destroy(gameObject,0.5f);

    }

}

}

my moving script:

{
public float runspeed = 2;

public float jumpspeed = 3;

Rigidbody2D rb2D;

public bool Betterjump = false;

public float fallmultiplier = 0.5f;

public float lowJumpMultiplier = 1f;

public SpriteRenderer Spriterenderer;

void Start()
{
    rb2D = GetComponent<Rigidbody2D>();

}

void FixedUpdate()
{
    if (Input.GetKey("d") || Input.GetKey("right"))
    {
        rb2D.velocity = new Vector2(runspeed, rb2D.velocity.y);
        Spriterenderer.flipX = false;
    }

    else if (Input.GetKey("a") || Input.GetKey("left"))
    {
        rb2D.velocity = new Vector2(-runspeed, rb2D.velocity.y);
        Spriterenderer.flipX = true;
    }
    else
    {
        rb2D.velocity = new Vector2(0, rb2D.velocity.y);
    }
    if (Input.GetKey("space") && Checkground.isGrounded)
    {
        rb2D.velocity = new Vector2(rb2D.velocity.x, jumpspeed);

    }

    if (Betterjump)
    {
        if (rb2D.velocity.y < 0)
        {
            rb2D.velocity += Vector2.up * Physics2D.gravity.y * (fallmultiplier) * Time.deltaTime;
        }

        if (rb2D.velocity.y > 0 && !Input.GetKey("space"))
        {
            rb2D.velocity += Vector2.up * Physics2D.gravity.y * (lowJumpMultiplier) * Time.deltaTime;
        }

    }
}

}

Make sure isGrounded is not being set to false when you eat the orange as a result of an OnCollisionExit. In other words, make sure you only set isGrounded to false when you leave contact with the ground, not anything else.