I have problems with PlayerPrefs on Android. I want my tutorial to show just one time so I wrote this code:
void Awake(){
firstTime = false;
hasPlayed = PlayerPrefs.GetInt ("hasPlayed");
if (hasPlayed == 0) {
firstTime = true;
} else {
PlayerPrefs.SetInt ("hasPlayed", 1);
firstTime = false;
PlayerPrefs.Save ();
}
}
Once built and tested on phone, the apk doesn't create any folder on /data or whatever and consequently, the tutorial is showing everytime I run the game.