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)); }
private void OnConnect() { thinkGear.StartMonitoring(); Debug.Log("Sensor on"); }
private void OnConnectFunction() { thinkGear.StartMonitoring(); Debug.Log("sensor on"); }