Basically i have a game that consists of 2 mini levels per level, In the first level the player drops a ball and depending on how many obstacles they hit they are awarded a score, for example "player hit 2 obstacles giving them a score of 2"
The second section on the level involves the player controlling a character from a top down view avoiding other obstacles. I would like to use the score from the previous scene to modify the speed at which the player moves (i know how to manipulate the speed but not how to access the variable from the script in the last scene)
First preference is to use "Don't Destroy on load" which keeps certain objects when a new scene loads, which means you can carry over your "Main" controller object holding the score and access it as a static variable.
DontDestroyOnLoad (gameObjectWhoIsHoldingScore);
The other more hacky way is to store it using the playerprefs in-built unity function.