SetManager() public method

public SetManager ( XsollaSubscriptions pricepoints ) : void
pricepoints XsollaSubscriptions
return void
Exemplo n.º 1
0
        public void OpenSubscriptions(XsollaSubscriptions subscriptions)
        {
            GridView             gridView = GetComponentInChildren <GridView> ();
            SubscriptionsAdapter adapter  = GetComponentInChildren <SubscriptionsAdapter>();

            adapter.SetManager(subscriptions);
            gridView.SetAdapter(adapter, 1);
        }
 public void OpenSubscriptions(string title, XsollaSubscriptions subscriptions)
 {
     Resizer.ResizeToParrent(gameObject);
     menu.transform.parent.parent.gameObject.SetActive(false);
     SetTitle(title);
     sAdapter.SetManager(subscriptions);
     if (sAdapter.OnBuySubscription == null)
     {
         sAdapter.OnBuySubscription += (subscriptionId) => {
             Dictionary <string, object> map = new Dictionary <string, object> (1);
             map.Add("id_package", subscriptionId);
             OpenPaymentMethods(map, false);
         };
     }
     DrawContent(sAdapter, 1);
 }