|
I'm making a game that uses an array to keep track of which levels have been completed, and which haven't. My question is, how do you save the array so that the next time the player plays my game (online), the array is called back into existence and the player doesn't have to do those levels again? Also, while I don't need it in Javascript, it'd be nice since that's what I use. Thanks!
(comments are locked)
|
|
Check this script on the wiki: http://www.unifycommunity.com/wiki/index.php?title=ArrayPrefs It'll let you persist your own int, string etc arrays very easily PlayerPrefsX is obsolete.
Jun 18 '10 at 02:25 PM
Cosine
PlayerPrefsx is obsolete, ArrayPrefs/PlayerPrefsX (different capitalization on the X) isn't
Jun 18 '10 at 03:17 PM
Mike 3
How would I go about implementing this? I'm trying "PlayerPrefsX.SetIntArray(arguments)" and Unity gives me errors about unknown identifiers. The code is also not picked up by the syntax highlighting.
Jun 18 '10 at 05:06 PM
Cosine
make sure you put the script(s) from the page into one of the earlier compilation pass folders, e.g. Plugins
Jun 18 '10 at 05:43 PM
Mike 3
Alright, thanks! I got it working now.
Jun 18 '10 at 06:24 PM
Cosine
(comments are locked)
|
