In my game I’ve set a tracking shot of the game world, which is a seperate unity file. However I’ve set a trigger at a specific point and after the camera has entered this trigger, the level, which is another seperate unity file, should load - but it does not. (yes, I’ve added all the levels in the “Build Settings”)
I’ve been spending hours in trying to fix this but without success - hopefully anybody of you guys got an idea what could be wrong with code:
#pragma strict
public var checkenter : boolean = false;
function Start () {
}
function Update () {
if (checkenter == true) {
Application.LoadLevel("Level Jumper - Level1");
}
}
function OnTriggerEnter () {
checkenter = true;
}
Thanks a lot for your help in advance!!