JointsDataSequence.cs 659 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [System.Serializable]
  5. public class JointsDataSequence
  6. {
  7. public List<JointsData> jointsDataSequence = new List<JointsData>();
  8. public List<float> recordingTimes = new List<float>();
  9. public JointsDataSequence(List<Vector3[]> jointsSequence, List<float> recordingTimes)
  10. {
  11. foreach(Vector3[] vectors in jointsSequence)
  12. {
  13. JointsData jointsData = new JointsData(vectors);
  14. jointsDataSequence.Add(jointsData);
  15. }
  16. foreach(float f in recordingTimes)
  17. {
  18. this.recordingTimes.Add(f);
  19. }
  20. }
  21. }