I have done the Platform Game with two levels , when completing Level 1, Level 2 shall be jammed and nothing happens . When I completing level in Unity editor and the level 2 too be jammed and in hierarchies writes deleted GameObject .
Each levels uses the same script.
Screen :
can you show us the code you use to switch levels?
Sorry for the long answer, this is code:
#pragma strict
function OnTriggerEnter(col : Collider)
{
if(col.tag == "Player")
{
Application.LoadLevel("Level02");
}
}
Build settings :
I don’t see anything wrong you’re doing there, I wonder if something is causing problems when it gets loaded in. Maybe try making it so when you finish level 2 it goes to level 1 to see if the same thing happens.