playerpref steps
This commit is contained in:
parent
eb914d25de
commit
f857f2f831
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Reference in a new issue