playerpref steps

This commit is contained in:
asleal2 2018-04-26 01:27:34 -05:00
parent eb914d25de
commit f857f2f831

View file

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