public EzGetShowcaseResult(
     GetShowcaseResult result
     )
 {
     if (result.item != null)
     {
         Item = new EzShowcase(result.item);
     }
 }
Exemple #2
0
        public void OnGetSalesItems(EzShowcase showcase, List <EzDisplayItem> displayItems)
        {
            for (var i = 0; i < verticalLayoutGroup.transform.childCount; i++)
            {
                Destroy(verticalLayoutGroup.transform.GetChild(i).gameObject);
            }

            foreach (var displayItem in displayItems)
            {
                var item = Instantiate(priceTableRowPrefab, verticalLayoutGroup.transform);
                item.salesItem = new SalesItem(displayItem.DisplayItemId, displayItem.SalesItem);
                item.onClickBuyButton.AddListener(OnClickBuyButton);
            }
        }
Exemple #3
0
        public IEnumerator Refresh()
        {
            void RefreshShowcaseAction(
                EzShowcase showcase
                )
            {
                Showcase = showcase;

                _onGetShowcase.RemoveListener(RefreshShowcaseAction);
                onWatchShowcaseEvent.Invoke(showcase, DisplayItems);
            }

            _onGetShowcase.AddListener(RefreshShowcaseAction);
            yield return(ShowcaseController.GetShowcase(
                             _client,
                             _session,
                             _showcaseNamespaceName,
                             _showcaseName,
                             _onGetShowcase,
                             _onError
                             ));
        }