// Start is called before the first frame update
 void Start()
 {
     dummy = new HRCollector();
     dummy.Connect();
     dummy.StartCollecting();
     enemy_control = enemy.GetComponent <ViridaxGameStudios.AI.BasicAIController>();
     detectRad     = enemy_control.m_DetectionRadius;
     //startSpeed = enemy_control.MovementSpeed;
 }
Esempio n. 2
0
        private void btnVerifySensors_Click(object sender, EventArgs e)
        {
            SensorsPending();

            Application.DoEvents();



            /*
             *  EEG Initiation
             */
            eegCollect = new EEGCollector(fusionData);
            eegCollect.Connect();
            eegCollect.DeviceReady += EEGReady; // Event that fires if a user is added to the EEG i.e. the headset is ready for use
            eegCollect.FindUsers();

            /*
             *  Heart rate initiation
             */
            hrCollect = new HRCollector(fusionData);
            if (hrCollect.Connect())
            {
                HRDeviceReady     = true;
                hrReady.BackColor = Color.Green;
                hrPort.Text       = "(" + hrCollect.MyPort() + ")";
            }
            else
            {
                hrReady.BackColor = Color.Red;
            }

            /*
             *  GSR Initiation
             */
            InitiateGSR();


            //kinect time
            InitiateFACE();
        }