private static Bone[] ReadBones(string path) { var bones = new List <Bone>(); using (var file = new StreamReader(path)) { while (!file.EndOfStream) { var input = file.ReadLine(); var boneInfo = BoneInfo.FromString(input); if (boneInfo != null) { bones.Add(new Bone(boneInfo)); } } } return(bones.ToArray()); }
public BoneInfo(BoneInfo boneInfo) : this(boneInfo.Index, boneInfo.Name, boneInfo.Enabled, boneInfo.X, boneInfo.Y, boneInfo.Z, boneInfo.Scale) { }
public void Reset() { Values = new BoneInfo(DefaultValues); }
public Bone(BoneInfo boneInfo) { DefaultValues = new BoneInfo(boneInfo); Values = new BoneInfo(boneInfo); }