I have this grounded script and it doesn't work

so I have this script but it does not work with my parameter for my player_run and player_jump which grounded parameters. The script works on the player but not on the parameters

using UnityEngine;
using System.Collections;

public class PlayerJump : MonoBehaviour {
public bool grounded = true;
public float jumpPower;
private Rigidbody2D myRigidbody;

 // Use this for initialization
 void Start () 
 {
	myRigidbody = GetComponent<Rigidbody2D>();
 }

 // Update is called once per frame
 void Update () {
    // Do something

      if(!grounded && myRigidbody.velocity.y == 0) {
     grounded = true;
 }
 if (Input.GetMouseButtonDown(0) && grounded == true) {
     myRigidbody.AddForce(transform.up*jumpPower);
     grounded = false;
 }
 }

 void FixedUpdate ()
 {
    
	
	
 }

}

You need to set the parameters in the animator.

public Animator anim;
anim.SetBool("yourbool", true);