Пример #1
0
        public void FromMarketRequest()
        {
            var targetItems = GetTargetItems();
            var assetIds    = new string[targetItems.Length];

            for (var i = 0; i < targetItems.Length; i++)
            {
                assetIds[i] = targetItems[i].assetId;
            }
            _serverApi.AsyncFromMarket(_marketAccessToken.text, assetIds, FromMarketCallback, OnErrorCallback);
            Debug.Log("FromMarket request was sent.");
        }