From f857f2f8319b94a901321185e22fc2d9ad2f69c7 Mon Sep 17 00:00:00 2001 From: asleal2 Date: Thu, 26 Apr 2018 01:27:34 -0500 Subject: [PATCH] playerpref steps --- MoCha/Assets/Scripts/GetGoals.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index aab5dff..db59225 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -43,7 +43,7 @@ public class GetGoals : MonoBehaviour { void Start () { // Create a new pedometer - pedometer = new Pedometer(OnStep); + pedometer = new Pedometer(OnStep(PlayerPrefs.GetInt("currentSteps"), 0)); // Reset UI OnStep(PlayerPrefs.GetInt("currentSteps"), 0);