I'm trying to load a level when the player passes through the cube but for some reason nothing happens when it passes. I have a cube with components: Cube(Mesh Filter), Mesh Renderer, LevelLoad script and Box Collider with isTrigger ticked. The levelload script looks like this:
using UnityEngine;
using System.Collections;
public class LevelLoad : MonoBehaviour {
void onTriggerEnter(){
Application.LoadLevel ("level02");
}
}
My current scene and level02 have been added to the build settings. And in my level02 scene, I also have a cube with box collider but is trigger isn't ticked (I've also tried ticking it but nothing happened). I don't even get errors when I run the game so I'm not really sure what the problem is.
Debug.Log
statement in youronTriggerEnter
, that will tell you whether the problem is in theApplication.LoadLevel
or before. – Adam H