starting values happening only once in Start()

so i have a script, and it runs a whole series of different things. in the game, you can set your starting values through the maze to whatever you want. Like bombs, ammo, etc. But when you set them, and play, eventually you will want to get to the goal. When you touch the goal, it will build another randomly generated maze. But, the values wont save through that process. It will revert. Lets say you use 20 ammo out of 100. You will have 80 ammo left, but when you touch the goal, it will go back to 100 ammo. I am very confused. The values wont save through loading the scene over again.

They won’t save when reloading a scene.
check these out:

@alexman1222004

The values of variables do not save when a scene is reloaded as the script runs again and the variables are reinitialised to their default values.

You can make these variables as static in order to make the values stay within the game even when you reload the scene.

OR

If you want these values to save and use them the next time you open the game and start playing, use PlayerPrefs.