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