public void AddMarketRowToScrollView(MarketRowWithNames _marketRow, bool _isOwned) { if (_isOwned) { MarketInfo _marketInfo = Instantiate(marketOwnedInfoPrefab, marketRowScrollViewContent).GetComponent <MarketInfo>(); _marketInfo.SetValues(_marketRow); } else { MarketInfo _marketInfo = Instantiate(marketInfoPrefab, marketRowScrollViewContent).GetComponent <MarketInfo>(); _marketInfo.SetValues(_marketRow); } }
public void AddMarketRowToScrollView(int _marketId, int _itemId, string _itemName, int _typeId, string _typeName, int _playerId, string _nickname, int _quantity, int _priceForUnit) { MarketInfo _marketInfo = Instantiate(marketInfoPrefab, marketRowScrollViewContent).GetComponent <MarketInfo>(); _marketInfo.SetValues(_marketId, _itemId, _itemName, _typeId, _typeName, _playerId, _nickname, _quantity, _priceForUnit); }