Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Getting data for if an object has already been collected on startup

$
0
0
I am attempting to create a method of saving whether a stone has or has not been collected in my scene on startup. I have done everything I know to do with playerprefs, but the playerpref is for every resource, as there will eventually be a lot of stones. What I want is, if you collect a resource of any kind, including chopping down a tree, picking up a stick, or destroying a bush, to 'know' if it has already been destroyed when the game starts up, and for it to destroy itself if it has... and the only way I know to do this is to create a playerpref for every single collectible thing in the world, which there is a lot of. Thanks for any help!

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

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