IEnumerator WaitingForPurchase() { yield return(new WaitForSeconds(0.5f)); #if (UNITY_ANDROID) GoogleIAB.purchaseProduct(mItemcode); #else IOSMgr.BuyItem(mItemcode); #endif }
// void RetryIAP(){ // orderNo = RequestIAP.Response.data.orderNo; // purchaseSucceededEvent(mPurchase); // } void mRequestIAP() { #if (UNITY_ANDROID) UtilMgr.ShowLoading(); //if (RequestIAP.Response.data != null) { //if(RequestIAP.Response.data.productId==itemid&&RequestIAP.Response.data.productCode==itemcode){ // orderNo = RequestIAP.Response.data.orderNo; //RequestIAP.Response.data. // GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY); GoogleIAB.purchaseProduct(itemcode); //, RequestIAP.Response.data.purchaseKey ); //} //} #else // orderNo = RequestIAP.Response.data.orderNo; IOSMgr.BuyItem(itemcode); #endif }