// PRIVATE METHODS ////////////////////////////// protected override OutfitVO[] FetchListData() { InventoryModel inventory = AmbitionApp.Inventory; if (IsMerchant) { AmbitionApp.SendMessage(InventoryMessages.UPDATE_MERCHANT); } List <ItemVO> items = IsMerchant ? inventory.Market.FindAll(i => i.Type == ItemType.Outfit) : new List <ItemVO>(inventory.GetItems(ItemType.Outfit)); List <OutfitVO> outfits = new List <OutfitVO>(); foreach (ItemVO item in items) { if (item is OutfitVO) { outfits.Add((OutfitVO)item); } } return(outfits.ToArray()); }
private void HandleInventory(InventoryModel inventory) { Button.interactable = inventory.GetItems(ItemType.Outfit)?.Length > 0; }