Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Oh yeah, I totally forgot to mention that the first thing you should do with this method is disable the exit with the lock/unlock function. This basically makes an exit functional as a trigger that would execute any code you want, as you've said. Thanks for bringing this up!