playerpref steps

This commit is contained in:
asleal2 2018-04-26 02:35:06 -05:00
parent 5f518d4010
commit 37a6524ae2

View file

@ -30,10 +30,10 @@ public class GetGoals : MonoBehaviour {
private int savedSteps = 0;
void OnStep (int steps, double distance) {
stepText.text = steps.ToString ();
userDistance = (distance * 3.28084);
userSteps = steps + savedSteps;
PlayerPrefs.SetInt("currentSteps",userSteps);
stepText.text = userSteps.ToString ();
}
private void OnDisable () {