public ThreadedDriver(DeviceSettings settings) { // FIXME: Dangerous. We should do this only on Player. K4aExtensions.DisableSafeCopyNativeBuffers(); _settings = settings; _captureThread = new Thread(CaptureThread); _captureThread.Start(); }
public ThreadedDriver(DeviceSettings settings) { // FIXME: Dangerous. We should do this only on Player. K4aExtensions.DisableSafeCopyNativeBuffers(); Settings = settings; this.provider = new BodyProvider(); this.bodyObj = GameObject.Find("Kinect4AzureTracker"); //TODO: Remove later _captureThread = new Thread(CaptureThread); _captureThread.Start(); }