public void AppendObject(UltimateSlotStat ultObject, string custom_id = "") { var ultiSlot = new UltimateSlot(ultObject, custom_id); _slotList.Add(ultiSlot); _slotListCount++; UpdateElementPos(_slotListCount - 1); }
public void InsertObject(UltimateSlotStat ultObject, int index, string custom_id = "") { _slotList.Insert(index, new UltimateSlot(ultObject, custom_id)); _slotListCount++; if (index < currentIndex) { currentIndex++; } for (int i = index; i < _slotListCount; i++) { UpdateElementPos(i); } }
public UltimateSlot(UltimateSlotStat slotStat, string custom_id) { this._slotStat = slotStat; this._custom_id = custom_id; }