using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class JointsData { public List jointsPositionsX = new List(); public List jointsPositionsY = new List(); public List jointsPositionsZ = new List(); 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); } } }