NibiruSensorEvent.cs 1020 B

1234567891011121314151617181920212223242526272829303132333435
  1. using UnityEngine;
  2. namespace Nxr.Internal
  3. {
  4. public class NibiruSensorEvent
  5. {
  6. public float x;
  7. public float y;
  8. public float z;
  9. public long timestamp;
  10. public SENSOR_LOCATION sensorLocation;
  11. public SENSOR_TYPE sensorType;
  12. public NibiruSensorEvent(float x, float y, float z, long timestamp, SENSOR_TYPE sensorType, SENSOR_LOCATION sensorLocation)
  13. {
  14. this.x = x;
  15. this.y = y;
  16. this.z = z;
  17. this.timestamp = timestamp;
  18. this.sensorLocation = sensorLocation;
  19. this.sensorType = sensorType;
  20. }
  21. public void printLog()
  22. {
  23. Debug.Log("NibiruSensorEvent{" +
  24. "sensorLocation=" + sensorLocation +
  25. ", sensorType=" + sensorType +
  26. ", x=" + x +
  27. ", y=" + y +
  28. ", z=" + z +
  29. ", timestamp=" + timestamp +
  30. "}");
  31. }
  32. }
  33. }