//========================================================================================= /// <summary> /// 引数の選択データの内容を比較する /// </summary> /// <param name="sel"></param> /// <returns></returns> public bool Compare(SelectionData sel) { if (selectionList.Count != sel.selectionList.Count) { return(false); } for (int i = 0; i < selectionList.Count; i++) { if (selectionList[i].Compare(sel.selectionList[i]) == false) { return(false); } } return(true); }
/// <summary> /// sourceの共有データを複製して再セットする /// 再セットした共有データを返す /// </summary> /// <param name="source"></param> /// <returns></returns> public override ShareDataObject DuplicateShareDataObject(ShareDataObject source) { if (ClothData == source) { //clothData = Instantiate(ClothData); clothData = ShareDataObject.Clone(ClothData); return(clothData); } if (ClothSelection == source) { //clothSelection = Instantiate(ClothSelection); clothSelection = ShareDataObject.Clone(ClothSelection); return(clothSelection); } return(null); }