zwol
0
Q:

playerprefs not working on android

// Make sure that it has a default value, like 0 for example

public float Highscore;

public void Start()
 {
     Highscore = PlayerPrefs.GetFloat("HighScore", 0); // like this
 }


public void Start()
 {
     Highscore = PlayerPrefs.GetFloat("HighScore"); // not like this
 }
0

New to Communities?

Join the community