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

"If there is no save data" or "If there are no PlayerPrefs"

$
0
0
Is there anyway to code such a thing? I don't want to do an inefficient way of something like: if(!PlayerPrefs.GetString("Transition Slide") && !PlayerPrefs.GetString("Armor") && !PlayerPrefs.GetString("Item") && !PlayerPrefs.GetString("Weapon") && !PlayerPrefs.GetInt("Health") && !PlayerPrefs.GetInt("Money")){ ..as this is just way too much and there has to be something better.

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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