I have a level selection menu where 2nd level locked. In 1st level there is a menu jump and an unlock button. The menu jump sends me to the level selection menu when I reach the end of level. But the problem is even after you die before reaching the level end, 2nd level is unlocked. I also tried with event observer to go to the next level after securing 100 points(let's say). But the result is same. The level 2 is unlocked at the time we enter level 1. How to put condition like the level 2 will only be unlocked when I reach the end of the level.