void Start() { if (instance == null) { instance = this; } DontDestroyOnLoad(this); bciState = BCIState.Disconnected; onBCIStateChanged.Invoke(Enum.GetName(typeof(BCIState), bciState), ""); StartCoroutine("ConnectToBCI"); }
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; }
void Start() { controller = GameObject.Find("InputManager").GetComponent <OpenBCIInput>(); }