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 () {
|
void Start () {
|
||||||
// Create a new pedometer
|
// Create a new pedometer
|
||||||
pedometer = new Pedometer(OnStep);
|
pedometer = new Pedometer(OnStep(PlayerPrefs.GetInt("currentSteps"), 0));
|
||||||
// Reset UI
|
// Reset UI
|
||||||
OnStep(PlayerPrefs.GetInt("currentSteps"), 0);
|
OnStep(PlayerPrefs.GetInt("currentSteps"), 0);
|
||||||
|
|
||||||
|
|
Reference in a new issue