how could i make this work , my isgrounded is not working ?

,How could i make it work ?

  • 1st: no where in your script I see you call function isGrounded()

  • 2nd of all: use [Debug Drawray][1] to check if your Down Vector is really go down

    Debug.DrawRay(transform.position, Vector3.down * 10f);
    [1]: Unity - Scripting API: Debug.DrawRay