Answers for "playerprefs not working on android"

C#
0

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
 }
Posted by: Guest on August-25-2020

Code answers related to "playerprefs not working on android"

C# Answers by Framework

Browse Popular Code Answers by Language