From eb914d25def5ffb8e6a9ae324269a1b4f5875210 Mon Sep 17 00:00:00 2001 From: asleal2 Date: Thu, 26 Apr 2018 01:20:23 -0500 Subject: [PATCH] playerpref steps --- MoCha/Assets/Scripts/GetGoals.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);