Don't Load Level

How can i disable the level loading?

Why would you need to?

I just want to disable the level loading… but how can i do this?

You can create a script that handles level loading…

function LoadLevel (levelName : String) {
    if (enabled) {
        Application.LoadLevel (levelName);
    }
}

And disable the component when you don’t want to be able to load the level.

Thank You!