playerpref steps

This commit is contained in:
asleal2 2018-04-26 01:20:23 -05:00
parent c2ed30d441
commit eb914d25de

View file

@ -32,7 +32,7 @@ public class GetGoals : MonoBehaviour {
userSteps = steps;
stepText.text = steps.ToString ();
userDistance = (distance * 3.28084);
PlayerPrefs.setInt("currentSteps",userSteps);
PlayerPrefs.SetInt("currentSteps",userSteps);
}
private void OnDisable () {
@ -45,7 +45,7 @@ public class GetGoals : MonoBehaviour {
// Create a new pedometer
pedometer = new Pedometer(OnStep);
// Reset UI
OnStep(PlayerPrefs.getInt("currentSteps"), 0);
OnStep(PlayerPrefs.GetInt("currentSteps"), 0);
//goalText.text = prefKey;
goalText.color = new Color(0f, 0f, 0f);