/// <summary> /// 克隆任务内容 /// </summary> private void CloneContent(TaskContentBase content) { TaskContentBase taskContent = content.Clone(); taskContent.Points.Clear(); for (int i = 0; i < content.Points.Count; i++) { ClonePoint(taskContent, content.Points[i], content.Points[i].Anchor.position); } taskContent.GUID = Target.TaskIDName + Target.TaskIDSign.ToString(); Target.TaskIDSign += 1; Target.Content.Add(taskContent); TaskContentAsset.GenerateSerializeSubObject(taskContent, Target); }