playerpref steps

This commit is contained in:
asleal2 2018-04-26 03:03:43 -05:00
parent 009e8ee9c9
commit 908c88ed85

View file

@ -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?
}