private void RecordDoll() { List <string> doll = m_CurRole.Dress.GetAllDressIds(); DollRecordData recordData = new DollRecordData(); recordData.detailIndex = dressupData.m_DetailIndex; recordData.dress = doll; recordStateModel.AddRecordDoll(recordData, GlobalData.curSelectRole); }
public void AddRecordDoll(DollRecordData recordDoll, int index = -1) { if (index >= 0) { _data.recordDolls[index] = recordDoll; } else { if (_data.recordDolls.Count >= 8) { _data.recordDolls.RemoveAt(0); } _data.recordDolls.Add(recordDoll); } Save(); }