public SerializeHumanoidFace(SerializeHumanoidFace serializeHumanoidFace) { for (int i = 0; i < serializeHumanoidFace.Smeshes.Count; i++) { Smeshes.Add(serializeHumanoidFace.Smeshes[i]); Array.Copy(serializeHumanoidFace.Smeshes[i].blendShapes, Smeshes[i].blendShapes, serializeHumanoidFace.Smeshes[i].blendShapes.Length); } FrameCount = serializeHumanoidFace.FrameCount; Time = serializeHumanoidFace.Time; }
public int BlendShapeNum() { return(Smeshes.Count == 0 ? 0 : Smeshes.Sum(t => t.blendShapes.Length)); }