Beispiel #1
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     DontDestroyOnLoad(this);
     bciState = BCIState.Disconnected;
     onBCIStateChanged.Invoke(Enum.GetName(typeof(BCIState), bciState), "");
     StartCoroutine("ConnectToBCI");
 }
Beispiel #2
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     DontDestroyOnLoad(this);
     consecThresholdBuffer    = new int[consecutiveBufferSize];
     consecThresholdBufferVal = new float[consecutiveBufferSize];
     bciState       = BCIState.Disconnected;
     loggingManager = GameObject.Find("LoggingManager").GetComponent <LoggingManager>();
     LogMeta();
     onBCIStateChanged.Invoke(Enum.GetName(typeof(BCIState), bciState), "");
     StartCoroutine("ConnectToBCI");
     inputNumber = 0;
 }
Beispiel #3
0
 void Start()
 {
     controller = GameObject.Find("InputManager").GetComponent <OpenBCIInput>();
 }