示例#1
0
        public void purchase(string item, string developerPayload)
        {
            if (unknownProducts.Contains(item))
            {
                callback.logError(UnibillError.WP8_ATTEMPTING_TO_PURCHASE_PRODUCT_NOT_RETURNED_BY_MICROSOFT, item);
                callback.onPurchaseFailedEvent(item);
                return;
            }

            wp8.Purchase(item);
        }
示例#2
0
        public void purchase(string item, string developerPayload)
        {
            #if UNITY_METRO
            if (unknownProducts.Contains(item))
            {
                callback.logError(UnibillError.WIN_8_1_ATTEMPTING_TO_PURCHASE_PRODUCT_NOT_RETURNED_BY_MICROSOFT, item);
                callback.onPurchaseFailedEvent(item);
                return;
            }

            UnityEngine.WSA.Application.InvokeOnUIThread(() => {
                wp8.Purchase(item);
            }, false);
            #endif
        }
示例#3
0
 public void purchase(string item, string developerPayload)
 {
     wp8.Purchase(item);
 }
示例#4
0
 public override void Purchase(ProductDefinition product, string developerPayload)
 {
     win8.Purchase(product.storeSpecificId);
 }
 public void purchase(string item, string developerPayload)
 {
     UnityEngine.WSA.Application.InvokeOnUIThread(() => {
         win8.Purchase(item);
     }, false);
 }