playerpref steps
This commit is contained in:
parent
fe61c6fc49
commit
cbc73b4546
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ public class GetGoals : MonoBehaviour {
|
|||
double userDistance;
|
||||
int totalSteps = 100;
|
||||
public Text stepText;
|
||||
private int savedSteps = 0;
|
||||
private int savedSteps;
|
||||
|
||||
void OnStep (int steps, double distance) {
|
||||
userDistance = (distance * 3.28084);
|
||||
|
@ -51,7 +51,7 @@ public class GetGoals : MonoBehaviour {
|
|||
pedometer = new Pedometer(OnStep);
|
||||
// Reset UI
|
||||
|
||||
OnStep(0, 0);
|
||||
//OnStep(savedSteps, 0);
|
||||
Debug.Log(savedSteps);
|
||||
|
||||
|
||||
|
|
Reference in a new issue