Hi, I'm trying to implement a feature where a mode becomes unlocked after achieving a certain ending.
The current setup uses a global variable that changes to 1 after the ending has been achieved and then saving it to local storage. It works as long as the game is running but when I close the game the unlocked feature reverts to its original locked state next time I play. How do I get the game to "remember" when something is unlocked?