Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Saving item count with Playerprefs

$
0
0
So i'm new to programming and writing scripts, and ive decided to make an incremental game just for fun and to learn new things. and i have come to a point where i think i should implement some kind of save system, before i add a bunch more stuff. So i started using PlayerPrefs , and it works great for saving gold and other variables, but im having problems with saving how many upgrades i have bought. All my upgrades are in one script, and if i save Count , it thinks that every upgrade should have the same count. Heres a pastebin http://pastebin.com/JspjPdDa , ignore the Playerprefs, i was just trying out different strategies. Thanks in advance.

Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>