예제 #1
0
        public InventoryEntry(int stackSize, SS_ItemPickUp invEntry, Sprite hbSprite)
        {
            this.invEntry = invEntry;

            this.stackSize     = stackSize;
            this.hotBarSlot    = 0;
            this.inventorySlot = 0;
            this.hbSprite      = hbSprite;
        }
예제 #2
0
        public void StoreItem(SS_ItemPickUp itemToStore)
        {
            addedItem           = false;
            itemEntry.invEntry  = itemToStore;
            itemEntry.stackSize = 1;
            itemEntry.hbSprite  = itemToStore.itemDefinition.itemIcon;

            //addedItem = false;
            itemToStore.gameObject.SetActive(false);
        }