On Start Of Layout action doesn't work after returning from another layout with Go To Layout action.
On game layout I have game objects and non game objects (like high scores text and words "game over").
On Start Of Layout event destroys all non game objects, and when game ends I create them again.
After that I'm going to another layout and then back with Go To Layout action. But On Start event is not working this time, I see same objects that I had on the end of game: high scores text and words "game over". Why it's not destroyed? What I'm doing wrong? Before I was using Reset Global Variables, but right now I can't use it, because different variables loading from WebStorage on different layouts.
Upd: Thanks for your help guys. Problem was in code - end game action was activating when shouldnt.