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);
            }
        }
Esempio n. 3
0
 public UltimateSlot(UltimateSlotStat slotStat, string custom_id)
 {
     this._slotStat  = slotStat;
     this._custom_id = custom_id;
 }