Exemplo n.º 1
0
    void Start()
    {
        int steps = HealthKit.Instance().GetYesterdaysSteps();

        stepDisplay = gameObject.GetComponent <Text>();
//		int stepCount = UnityEngine.Random.Range(1,20000);
        stepDisplay.text = steps.ToString();
        saveSteps(steps);
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     HealthKit.Instance().Initialize();
 }