How to stop landing sound when GameObject is grounded ?

Hey so I have a car that is grounded but occasionally goes in the air. I want a landing sound to play only when it hits the ground after being in the air. I’ve only been able to find scripts pertaining to Character Controllers using isGrounded and not GameObjects. The script I have now obviously doesn’t work because if the car is driving on the ground, it constantly wants to play the landing sound. But I can’t figure how to prevent that. Any help would be great!

{

public AudioClip[] carLandingsArray;
AudioSource audio;

public bool isGrounded;

void Start()
{
	audio = GetComponent<AudioSource> ();
	isGrounded = true;
}

void Update()
{
	if (isGrounded) 
	{
		audio.PlayOneShot (carLandingsArray [Random.Range (0, 1)]);
	}
}

}

Good day.

What you are asking is very simple, you should think a liitle before coming to ask… For logical problems you should try to xind the solution by your own.

You only need to create a if sentence to know when the car is !isgrounded & detects collide to ground" it means is the 1sr frame touching the ground after beeing in air, so is the mpment to play the sound.

Bye