Пример #1
0
    private void SetVariables()
    {
        thinkgear = GameObject.Find("ThinkGear").GetComponent <ThinkGear>();
        thinkgear.UpdateConnectedStateEvent += () => { thinkgear.StartMonitoring(); Debug.Log("Sensor on"); };
        thinkgear.UpdateMeditationEvent     += UpdateMeditation;
        thinkgear.UpdateAttentionEvent      += UpdateAttention;

        timeLeft = maxTime;

        bestScoreSec = PlayerPrefs.GetInt("bestScore");

        bestScoreText.text = string.Format("Your best score: {0:00}:{1:00}", Mathf.FloorToInt(bestScoreSec / 60), Mathf.FloorToInt(bestScoreSec % 60));
    }
Пример #2
0
 private void OnConnect()
 {
     thinkGear.StartMonitoring();
     Debug.Log("Sensor on");
 }
Пример #3
0
 private void OnConnectFunction()
 {
     thinkGear.StartMonitoring();
     Debug.Log("sensor on");
 }