when I return to main menu, it keeps the game scene going even when I have returned. so when I hit play it keeps the progress from before I hit return. how do I fix this?
I'm assuming the menu is a seperate scene?
My usual command is SceneManager.LoadScene(0); (or whichever number scene you wish to load)
Another thing if things are being changed by a script, are the values assigned at the start or just updated as the script runs?
I honestly don't know how much difference the second one makes as I've never had the issue before, and haven't been at this very long (As in, i've tinkered through the years but never made any actual games until just over a week ago)
Also if you haven't already, try looking up "How to add a menu to my endless runner unity", or something similar that fits your issue, because although your game isn't what you generally think of when someone says endless runner, I reckon a lot of the concepts (and their code if you really need!) could very easily be applied to it