In my game, there is a code that takes the characters to the first level when they failed 5 times.There is a reset layout code that allows them to go to the beginning of the current section every time they are failed.However, every time the restart code runs, the global variable with 5 failed rights is reset and becomes 5 again.In short, I want the global variable that does not change even if the layer is reset.
what i can do?