|
I need unity to remember which scene i was playing before i quit, and then load it back hen i run the game again from a different scene- how do I do this?
(comments are locked)
|
|
Have a look at the PlayerPrefs class - http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.SetInt.html something like this should do the trick: Set the player level when a new scene is loaded to save the number of the last level to be loaded on the player's machine:
And call this when the game is first started to get that same value: Wow, thanks a bundle!! :D
Oct 20 '10 at 10:57 PM
Fishman92
Glad I could help - please check the question as answered :)
Oct 21 '10 at 11:14 PM
chief1234
(comments are locked)
|
|
hi, may i aske? how do i declare savedLevel?
(comments are locked)
|
