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

How to use PlayerPrefs

$
0
0
Hey guys, i started to work on a simple game yesterday, and it's almost done, but i wanted to implement a Shop for the Player to buy things. I already made a system to store how many points the Player has, but i don't know **how** to save a float after the game is closed, and then restore it once it opens. I've been reading a little, and i discovered that there is one way, and you gotta use **PlayerPrefs**, but i never used it, and i didn't get what am i supposed to do and how. Could someone explain to me how would i use PlayerPrefs to save a variable once the game is closed, and then restore it once it is opened again? **Thank you kindly =]**

Viewing all articles
Browse latest Browse all 1333

Trending Articles