private void CreateNewTradeOfferItem(TradeOffer offer) { TradeOfferWidget widget = Instantiate(offerWidgetPrefab); widget.transform.SetParent(contentGrid.transform, false); widget.Init(this, offer); }
public void OpenBuyScreen(TradeOfferWidget widget, TradeOffer offer) { buyWidget.gameObject.SetActive(true); buyWidget.Init(this, offer); selectedWidget = widget; }