Im using Application.loadlevel on the first menu and its working good.
So i have an objet that collide with another objet to finish the level.
the first object is rigidbody 2D and circle collider 2D
the exit object is circle collider 2D and is trigger checked.
so here is my code
void OnTriggerEnter2D (Collider2D other)
{
if (other.tag == "Player") {
Debug.Log("Enter Exit");
Application.LoadLevel(2);
}
}
the log is working so the action is fired but the level reset.
and i added my second level on the debug setting.
i don’t know what is wrong ? need some help please ! thx