Please help me with this boolean.

private var play : boolean = true;

function update ()

{

if (play == true)
//if(Input.GetKey(KeyCode.JoystickButton0))

    {

    Application.LoadLevel ("game");

    }

}

function OnTriggerEnter (other : Collider)
{

play = true;

animation.CrossFade("open");

}

function OnTriggerExit (other : Collider) 
{

play = false;

animation.CrossFade("close");

}

Im really stuck with this, even when i set the boolean 'true,' from the start, The level still will not load (i know that the code to launch the level works.)

Please help me with this, i cant see my mistake at all - must be being an idiot. =(

Thanks - Graeme.

This could be just a copy/paste error, but your function starts with a lowercase u. The function that gets called each frame starts with a capital U.