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);