public void AddElement(Setting_CustomBarCellData data) { CustomBarCell cell = new CustomBarCell(data, m_cellList.Count); cell.m_OnBtnClickEvent += OnBtnClick_Tab; m_cellList.Add(cell); }
public void AddElement() { CustomBarCell cell = new CustomBarCell(m_cellList.Count); cell.m_OnBtnClickEvent += OnBtnClick_Tab; m_cellList.Add(cell); UserSetting.Instance.AddCustomBarCell(cell.m_cellInfo); }