Problem with mouse click and buttons

Hello,

I have the following:

in Update:

if(Input.GetMouseButtonDown(0))
Application.LoadLevel(levelName);

in OnGUI:

if(GUI.Button(…))
Application.LoadLevel(otherLevel);

and the problem is I can’t load the level ‘otherLevel’ when I press the button. What can I do?

Thank you

You have to add a Scene to final compilation of project, File → Build Settings → Add Current. There you have Scenes in build list.