Why does my audio cut out completely when I try to edit volume? (Java) SOLVED!

Hi,

I have begun to implement a menu into my game (using Java), and it was working fine until I started to make a 'volume' option. I added an audio clip (I made sure it was 2D) to the scene as reference, and it worked fine until I put these sections of code into the menu and the camera (where the audio listener was) respectively:

private var volumeLevel = 1.0;

    volumeLevel = GUI.VerticalSlider(Rect(Screen.width/2,Screen.height/2-10,10,95), volumeLevel, 1.0, 0.0);

function update()
{
    PlayerPrefs.SetFloat ("Volume Level", volumeLevel);
}

The above (plus some GUI things) went into the Menu Script;

function Update () 
{
AudioListener.volume = (PlayerPrefs.GetFloat("Volume Level"));
}

The above went into my camera.

As soon as I put that into effect, no sound whatsoever worked. I changed the volume levels from 1 to 100, and still nothing. I also changed it from `AudioListener.volume` to `audio.volume` and put it in the source itself, but it still was silent. When I deleted the scripts again however, the audio worked perfectly fine again.

Is there something obvious I'm missing??

I think this is an exceedingly simple fix--Change the 'update' function to 'Update' (with a capital U) in your menu script.