-
Notifications
You must be signed in to change notification settings - Fork 0
Inventory system
Nate River edited this page Nov 3, 2023
·
5 revisions
Navigate to HeroEditor/FantasyInventory/Scenes/
, you'll see Inventory
and Trader
scenes there.
ItemCollection
is a list of all possible game (logical) items in your game. ItemCollection
is ScriptableObject. Game (logical) items are mapped with sprites from IconCollection
and SpriteCollection
.
There are 2 types of inventory: ScrollInventory
(represents items in player's bag) and Equipment
(represents items equipped by character), both of them inherited from ItemContainer
class. ScrollInventory
and Equipment
can be initialized using a list of items, you'll find an example in InventoryBase.Start
.
InventoryBase
and ShopBase
scripts is a good place to create your inventory system.