public virtual void onStoreThirdPartyPurchaseSuccess(GameStorePurchaseRecord data) { LogUtil.Log("onStoreThirdPartyPurchaseSuccess"); if (data != null) { LogUtil.Log("onStoreThirdPartyPurchaseSuccess: data.messageTitle:" + data.messageTitle); UINotificationDisplay.QueueInfo(data.messageTitle, data.messageDescription); } GameProduct product = GameProducts.Instance.GetProductByPlaformProductCode(data.productId); if (product == null) { return; } GameStorePurchaseDataItem itemPurchasing = GetItemPurchasing(product.code); if (itemPurchasing != null) { LogUtil.Log("onStoreThirdPartyPurchaseSuccess: itemPurchasing.product:" + itemPurchasing.product.code); if (product.type == GameProductType.currency) { GameStoreController.HandleCurrencyPurchase(itemPurchasing.product, itemPurchasing.quantity); } else if (product.type == GameProductType.access) { GameStoreController.HandleAccessPurchase(itemPurchasing.product, itemPurchasing.quantity); } ResetPurchase(itemPurchasing.product.code); } }
public void Awake() { if (Instance != null && this != Instance) { //There is already a copy of this script running Destroy(this); return; } Instance = this; DontDestroyOnLoad(gameObject); }
public virtual void onStorePurchaseFailed(GameStorePurchaseRecord data) { if (data == null) { return; } GameStorePurchaseDataItem itemPurchasing = GetItemPurchasing(data.productId); if (itemPurchasing != null) { ResetPurchase(itemPurchasing.product.code); } UINotificationDisplay.QueueError(data.messageTitle, data.messageDescription); }
IEnumerator takePhotoCo() { ShowNone(); GameUIPanelOverlays.Instance.ShowOverlayWhiteFlash(); yield return(new WaitForSeconds(.7f)); PhotoObjectSize(); GameCommunitySocialController.TakePhoto(photoMaterial); UINotificationDisplay.QueueInfo("Loading Photo", "Photo just taken is saving."); GameController.GameRunningStateContent(); yield return(new WaitForSeconds(.5f)); showDialog(); }
public virtual void onStoreThirdPartyPurchaseFailed(GameStorePurchaseRecord data) { if (data != null) { LogUtil.Log("onStoreThirdPartyPurchaseFailed: data.messageTitle:" + data.messageTitle); UINotificationDisplay.QueueInfo(data.messageTitle, data.messageDescription); } GameProduct product = GameProducts.Instance.GetProductByPlaformProductCode(data.productId); if (product == null) { return; } GameStorePurchaseDataItem itemPurchasing = GetItemPurchasing(product.code); if (itemPurchasing != null) { LogUtil.Log("onStoreThirdPartyPurchaseFailed: itemPurchasing.product:" + itemPurchasing.product.code); ResetPurchase(itemPurchasing.product.code); } }