check if an object is grounded or not in unity

Code Example - check if an object is grounded or not in unity

                
                        // Add a character controller to your object

public CharacterController controller;

if (controller.isGrounded)
{
  // Jump 'FOR EXAMPLE'
}