From 908c88ed854f6be5f213c091e6e31d5fc4727b69 Mon Sep 17 00:00:00 2001 From: asleal2 Date: Thu, 26 Apr 2018 03:03:43 -0500 Subject: [PATCH] playerpref steps --- MoCha/Assets/Scripts/GetGoals.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index 3ec2b29..88ff3cb 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -132,6 +132,8 @@ public class GetGoals : MonoBehaviour { Debug.Log("Goal complete! +100pts!"); userSteps = 0; PlayerPrefs.SetInt("currentSteps", userSteps); + savedSteps = 0; + OnStep(0,0); //destroy the goal and set a new one? }