public void InitSensors() { // Cached sensors Sensors = new List<Kinect>(); // Looking for a valid sensor var i = 0; foreach (var potential in KinectSensor.KinectSensors) { if (potential.Status != KinectStatus.Connected) { continue; } Kinect sensor = new Kinect("Kinect_v1_"+(i++), potential); Sensors.Add(sensor); } // Little warning if (Sensors.Count <= 0) { Error("No Kinect Sensor"); } }
public void InitSensors() { // Cached sensors Sensors = new List <Kinect>(); // Looking for a valid sensor var i = 0; foreach (var potential in KinectSensor.KinectSensors) { if (potential.Status != KinectStatus.Connected) { continue; } Kinect sensor = new Kinect("Kinect_v1_" + (i++), potential); Sensors.Add(sensor); } // Little warning if (Sensors.Count <= 0) { Error("No Kinect Sensor"); } }