public TimeEventSaveData GetSaveData() { TimeEventSaveData datas = new TimeEventSaveData(); m_TimeEvents.Sort(); datas.datas = m_TimeEvents.ToArray(); return(datas); }
public void SetTimeEvents(TimeEventSaveData datas) { if (datas == null) { return; } m_TimeEvents.Clear(); foreach (var item in datas.datas) { m_TimeEvents.Add(item); } }