|
@@ -67,6 +67,11 @@ public class ViveInput : MonoBehaviour
|
|
|
{
|
|
|
csvTime += Time.deltaTime;
|
|
|
}
|
|
|
+
|
|
|
+ if (Input.GetKeyDown(KeyCode.J))
|
|
|
+ {
|
|
|
+ DebugData();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static IEnumerator WaitForControllerPress()
|
|
@@ -85,4 +90,16 @@ public class ViveInput : MonoBehaviour
|
|
|
{
|
|
|
isPlaying = false;
|
|
|
}
|
|
|
+
|
|
|
+ private void DebugData()
|
|
|
+ {
|
|
|
+ string path = Application.dataPath + "/Recordings/OneArm_Backward.sav";
|
|
|
+ JointsDataSequence data = SaveSystem.Load(path);
|
|
|
+ for (int i = 0; i < data.recordingTimes.Count; i++)
|
|
|
+ {
|
|
|
+ Debug.Log(data.recordingTimes[i]);
|
|
|
+ }
|
|
|
+ Debug.Log("start: " + data.recordingTimes[0]);
|
|
|
+ Debug.Log("end: " + data.recordingTimes[data.recordingTimes.Count - 1]);
|
|
|
+ }
|
|
|
}
|