예제 #1
0
        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);
        }
예제 #2
0
        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();
                }
            }
        }