Created
July 29, 2019 06:08
-
-
Save shohan4556/c46a82972c08037ad01bba018ca19277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using HuaweiMobileService; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class ProductPayImpl : IProductPayHandler { | |
//public Text debugTest; | |
public void OnResult(int resultCode, ProductPayResponse response){ | |
//debugTest.text = "Productpay succesfull after onResult"; | |
//Debug.Log("<b>Succesfull!</b>"); | |
//PlayerPrefs.SetInt("noAds", 1); | |
if(resultCode == 0){ | |
Debug.Log("<b>Succesfull!</b>"); | |
PlayerPrefs.SetInt("noAds", 1); | |
Debug.Log("Likhon------------after buying----------- result: "+ resultCode); | |
Debug.Log("Likhon------------after buying----------- result: "+ response); | |
} else { | |
Debug.Log("Likhon------------after buying----------- result: "+ resultCode); | |
Debug.Log("Likhon------------after buying----------- result: "+ response); | |
} | |
//Debug.Log("Likhon------------after buying: "+ resultCode + " " +response); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment