From 009e8ee9c968347795042e584aa1adcff3f1edf4 Mon Sep 17 00:00:00 2001 From: asleal2 Date: Thu, 26 Apr 2018 02:54:53 -0500 Subject: [PATCH] playerpref steps --- MoCha/Assets/Scripts/GetGoals.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index 97f2d96..3ec2b29 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -130,7 +130,8 @@ public class GetGoals : MonoBehaviour { if(barDisplay >= 1.0f) { Debug.Log("Goal complete! +100pts!"); - + userSteps = 0; + PlayerPrefs.SetInt("currentSteps", userSteps); //destroy the goal and set a new one? }