public List <StoreSlot> GetLockedSlots() { var lockedSlots = new List <StoreSlot>(); foreach (var slot in _storeSlots) { if (!slot.Active || PlayerUnlocks.Has(slot.Data)) { continue; } lockedSlots.Add(slot); } return(lockedSlots); }
public void InitializeItems(Store.StoreSlot[] slots, bool progressLock, ContentsLoader loader) { _contentsLoader = loader; _progressLock = progressLock; HideButtons(); for (int i = 0; i < maxSlot && i < slots.Length; i++) { if (!slots[i]) { continue; } _storeSlots[i].Show(slots[i]); if (PlayerUnlocks.Has(_storeSlots[i].Data)) { _storeSlots[i].Unlocked(); } } }