Example #1
0
    public void onPurchaseSuccess(string result)
    {
        Debug.Log("GamePotEventListener::onPurchaseSuccess()");
        NPurchaseInfo purchaseInfo = JsonMapper.ToObject <NPurchaseInfo>(result);

        if (cbPurchase != null)
        {
            cbPurchase(NCommon.ResultPurchase.SUCCESS, purchaseInfo);
            cbPurchase = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onPurchaseSuccess(purchaseInfo);
            }
        }
    }