public void onPurchaseFailure(string result) { Debug.Log("GamePotEventListener::onPurchaseFailure() - " + result); NError error = JsonMapper.ToObject <NError>(result); if (cbPurchase != null) { cbPurchase(NCommon.ResultPurchase.FAILED, null, error); cbPurchase = null; } else { if (GamePotInterface != null) { GamePotInterface.onPurchaseFailure(error); } } }