Hey everyone having some issue. Working on my first project, and I need to check the level and if the level = (level number here) I need it to do something.
Code I have now in c# it does not work. Essentially I need something like this. I would like to be able to call this in a trigger event. So if I collect all the coins it will check to see what level it is and if it is “3” then load _Scene.
void CheckLevelReset() {
if (Application.LoadLevel (3))
Application.LoadLevel("_Scene");
}