check the parameterValue in console

Hi, i would like to check that the parameterValue on trigger enter and triggerExit, is correct. I would like to see in the console with Debug.Log. But i can’t

void OnTriggerEnter (Collider hit){

	if (hit.GetComponent<Collider> ().CompareTag ("Player")) {

		MusicaC.mcaparam.setValue (0.12f);
		MusicaC.M_Pipes.getParameter ("MUSIC", out MusicaC.mcaparam);

		Debug.Log (MusicaC.mcaparam);


	}
}

The number that appear in console is 0,why???

thanks

It looks as though you are resetting the parameter reference rather than the value.

Start()
{
    // Use this once to assign a reference to the parameter.
    MusicaC.M_Pipes.getParameter ("MUSIC", out MusicaC.mcaparam);
}

OnTriggerEnter()
{
    if (hit.GetComponent<Collider> ().CompareTag ("Player"))
    {
        // Get the value of the paramter at this moment in time.
        MusicaC.mcaparam.getValue (out paramValue);
        if (paramValue == number)
        {
            MusicaC.mcaparam.setValue (0.12f);
        }
    }
}