diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index 1ab1556..aab5dff 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -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);