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

PlayerPrefs variable

$
0
0
Hi There, I'm collecting information about two Spheres and then rendering a Cylinder but this code gives errors. Why is that, thanks. function Update () { if (PlayerPrefs.GetInt("Sphere1", 1) && (PlayerPrefs.GetInt("Sphere2", 1))) { GameObject.Find("Cylinder1").renderer.enabled = true; } }

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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