1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- [System.Serializable]
- public class JointsData
- {
- public List<float> jointsPositionsX = new List<float>();
- public List<float> jointsPositionsY = new List<float>();
- public List<float> jointsPositionsZ = new List<float>();
- public JointsData(PlayerReplay playerReplay)
- {
- Transform[] joints = playerReplay.joints;
- foreach(Transform t in joints)
- {
- jointsPositionsX.Add(t.position.x);
- jointsPositionsY.Add(t.position.y);
- jointsPositionsZ.Add(t.position.z);
- }
- }
- }
|