playerpref steps
This commit is contained in:
parent
5f518d4010
commit
37a6524ae2
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Reference in a new issue