// Use this for initialization void Start() { // 01. CONNECT EPOC = new BrainFuck("INSERT_YOUR_HEADSET_ID"); string client_id = "INSERT_YOUR_CLIENT_ID"; string client_secret = "INSERT_YOUR_CLIENT_SECRET"; EPOC.Connect(client_id, client_secret); EPOC.On("Ready", Ready); EPOC.On("Stream", Stream); Ball = BallObject.GetComponent <Rigidbody>(); }
// Use this for initialization void Start() { // 01. CONNECT // e.g. EPOCPLUS-0000000 EPOC = new BrainFuck("INSERT_YOUR_HEADSET_ID"); // FROM YOUR EMOTIV ACCOUNT string client_id = "INSERT_YOUR_CLIENT_ID"; string client_secret = "INSERT_YOUR_CLIENT_SECRET"; EPOC.Connect(client_id, client_secret); // SETUP EVENTS EPOC.On("Ready", Ready); EPOC.On("Stream", Stream); }