1using System.Collections;
2using System.Collections.Generic;
3#if !UNITY_WEBGL && DANA
4using NextMind.NeuroTags;
8#if !UNITY_WEBGL && DANA
9[RequireComponent(typeof(NeuroTag))]
14 private GameObject go;
16 private float conf = 0.0f;
17 private bool triggered, maintained, active =
false;
18 private float trigg, maintainStart;
24#if !UNITY_WEBGL && DANA
25 go = GetComponent<NeuroTag>().StimulationRenderers[0];
39 Debug.Log(
"OnTriggered @ " + Time.time);
46 maintainStart = Time.time;
49 Debug.Log(
"OnMaintainned @ " + Time.time);
71 text.text = $
"Confidence: {conf:P2}\nLast triggered at {trigg:F1}\nMaintained: {(maintained ? (Time.time - maintainStart).ToString("F1
") : "False
")}\nActive: {active}";
void OnBecameDeactivated()
void OnConfidenceChanged(float value)