|
@@ -1,3 +1,5 @@
|
|
|
+using UnityEngine;
|
|
|
+
|
|
|
namespace Sensors.USB
|
|
|
{
|
|
|
public struct BreakSensorData
|
|
@@ -5,18 +7,29 @@ namespace Sensors.USB
|
|
|
public bool isActive;
|
|
|
public float timeActive;
|
|
|
}
|
|
|
- public class BreakSensorReveiver: AwaitDevice
|
|
|
+ public class BreakSensorReveiver: AwaitUsbDevice
|
|
|
{
|
|
|
private BreakSensorData sensorData;
|
|
|
public BreakSensorData SensorData => sensorData;
|
|
|
|
|
|
+ public override int DeviceId => throw new System.NotImplementedException();
|
|
|
+
|
|
|
+ public override bool Connected => throw new System.NotImplementedException();
|
|
|
+
|
|
|
public override void Connect(USBDevice device)
|
|
|
{
|
|
|
Debug.Log("Connect not implemented");
|
|
|
}
|
|
|
}
|
|
|
- public class BreakReceiver: AwaitDevice
|
|
|
+ public class BreakReceiver : AwaitUsbDevice
|
|
|
{
|
|
|
+ public override int DeviceId => throw new System.NotImplementedException();
|
|
|
+
|
|
|
+ public override bool Connected => throw new System.NotImplementedException();
|
|
|
|
|
|
+ public override void Connect(USBDevice device)
|
|
|
+ {
|
|
|
+ throw new System.NotImplementedException();
|
|
|
+ }
|
|
|
}
|
|
|
}
|