New answers tagged scene
When you load a scene from a script you cant execute code after that.You need to deserialize your player data and then set the position in a Awake() or Start() method. They get called once when the scene is loaded.
Note: I'm by no means the lead authority on this, but I believe you've combined two different methods of saving the data. Player Prefs don't require the binary formatter stuff Binary Serialization does not use player prefs I'd say player prefs are easier to use (although not as great for saving lots of data) To save the PlayerPrefs it's just ...
Top 50 recent answers are included