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.