Levels completed not loaded after device restart
Dear All,
In my game, I am able to save the levels completed and unlock the levels player has completed.
This works very fine as long as I have the the device running.
But, as soon as I restart the device my all saved levels are lost and I have to start from level 1.
Here is I am doing it. Would be Great if some of the GS expert can suggest. I save the last level complete with save attribute and a key. At the beginning of the code, I am loading the level complete attribute 2 times in 2 scenes (just to be doubly sure
. And then In my level select i say lock the level in case Level Number Image is > level select attribute.
Not sure why then it is losing that attribute after the device restart. Is't load and save attribute meant to work even after device restart?
Thank You
In my game, I am able to save the levels completed and unlock the levels player has completed.
This works very fine as long as I have the the device running.
But, as soon as I restart the device my all saved levels are lost and I have to start from level 1.
Here is I am doing it. Would be Great if some of the GS expert can suggest. I save the last level complete with save attribute and a key. At the beginning of the code, I am loading the level complete attribute 2 times in 2 scenes (just to be doubly sure

Not sure why then it is losing that attribute after the device restart. Is't load and save attribute meant to work even after device restart?
Thank You
Comments
To test, you could have a display text actor showing on your 1st screen what the unlocked level is. Play a few levels, close the app, restart and see what that number is. If it as expected the problem lies in the unlocking, if its say 0 then its with the saving and loading.
Hope that helps.
Cheers
I hope you get what i mean? Do I must publish the game on App store, before I can actually test if what I have done will work fine or not?
Thanks
Thanks very much for ur help.