From cbc73b45460b276ee876986cf5b7318fd03f2026 Mon Sep 17 00:00:00 2001 From: asleal2 Date: Thu, 26 Apr 2018 02:46:35 -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 77a47b8..74a5887 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -27,7 +27,7 @@ public class GetGoals : MonoBehaviour { double userDistance; int totalSteps = 100; public Text stepText; - private int savedSteps = 0; + private int savedSteps; void OnStep (int steps, double distance) { userDistance = (distance * 3.28084); @@ -51,7 +51,7 @@ public class GetGoals : MonoBehaviour { pedometer = new Pedometer(OnStep); // Reset UI - OnStep(0, 0); + //OnStep(savedSteps, 0); Debug.Log(savedSteps);