Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    public virtual void onStorePurchaseSuccess(GameStorePurchaseRecord data)
    {
        if (data == null)
        {
            return;
        }

        GameStorePurchaseDataItem itemPurchasing = GetItemPurchasing(data.productId);

        if (itemPurchasing != null)
        {
            ResetPurchase(itemPurchasing.product.code);
        }

        UINotificationDisplay.QueueInfo(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();
    }
Exemplo n.º 4
0
    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);
        }
    }