public AntChannel OpenBackgroundScanChannel(byte userChannel) { AntChannel channel = this.gameObject.AddComponent <AntChannel>(); channelList.Add(channel); channel.ConfigureScan(userChannel); return(channel); }
public AntChannel OpenBackgroundScanChannel(byte userChannel, byte USBDeviceNum = 0) { nScanRequest++; if (backgroundScanChannel) //if a background Scan channel already exist { return(backgroundScanChannel); } channelIDUsed[USBDeviceNum, userChannel] = true; backgroundScanChannel = this.gameObject.AddComponent <AntChannel>(); channelList.Add(backgroundScanChannel); backgroundScanChannel.ConfigureScan(userChannel, USBDeviceNum); return(backgroundScanChannel); }