- Home /
Question by
jmparavicini · Oct 03, 2014 at 11:53 PM ·
objectplayerprefsjava
PlayerPrefs dont load object again if destroyed
Hello everyone
I have my little game and now i have to save and load all things i did very well but i have 1 problem. My Problem is that i have batterys, keys, coins etc. in the game and the player can collect them but how can i make to not load them again when the player has collected them
i use javascript
cheers skullbeats1
Comment
Answer by Kiwasi · Oct 04, 2014 at 12:00 AM
Set a bool on each GameObject. Save the bool in player prefs. In the start method check the bool. If the object has already been used then destroy it or don't spawn it.
Your answer
Follow this Question
Related Questions
Adding instantiated objects to arrays 1 Answer
Make objects follow main objects exact path. 1 Answer
AndroidJavaObject Builder Class 1 Answer
Question on playerprefs 2 Answers