Im not sure what to add to this to make it so my character is unable to double jump

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SimpleMovement : MonoBehaviour
{

public float speed;
public float jump;

private Rigidbody2D rb;
private float Move;


// Start is called before the first frame update
void Start()
{
    rb = GetComponent<Rigidbody2D>();
}

// Update is called once per frame
void Update()
{
    Move = Input.GetAxis("Horizontal");

    rb.velocity = new Vector2(Move * speed, rb.velocity.y);

    if (Input.GetButtonDown("Jump"))
    {
        rb.AddForce(new Vector2(rb.velocity.x, jump));


    }
}

}

Create a boolean called “jumpready” or something that’s set to false when the character jumps, and true when they collide with the ground again. you’ll also want an if statement to prevent jumping when the boolean is false. Depending on the complexity of your game, this could be very easy or somewhat difficult to implement.

if (Input.GetButtonDown("Jump") && rb.Cast(Vector3.down,new RaycastHit2D[1],0.1f)>0) // Wanting to jump and we are standing on something?
{
    rb.AddForce(new Vector2(0, jump),ForceMode2D.Impulse);
}

I figured it out after a while, thank you though