using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.Text;
public class StatsUpdate : MonoBehaviour {
public Text score;
public Text steps;
public Text distance;
public Text calories;
// Use this for initialization
void Start () {
//steps.text = PlayerPrefs.GetInt("currentSteps").ToString();
steps.text = PlayerPrefs.GetInt("fitbitSteps").ToString();
score.text = PlayerPrefs.GetInt("totalPoints").ToString();
//distance.text = ((float)PlayerPrefs.GetInt("currentSteps")/2000.0f).ToString() + " mi.";
distance.text = PlayerPrefs.GetFloat("fitbitDistance").ToString() + " mi.";
calories.text = PlayerPrefs.GetInt("fitbitCalories").ToString();
}
public void refreshPrefs() {
// Update is called once per frame
void Update () {