Exemplo n.º 1
0
    //-------------------------------------------------------------------------
    private void consumePurchaseSucceededEvent(Purchase purchase)
    {
        Debug.Log("consumePurchaseSucceededEvent: " + purchase);
        mMsg = "CONSUMED Succeeded: " + purchase.ToString();

        PayReceiver.instance().PayResult(_ePayOptionType.ConsumeProduct, true, purchase);
    }
Exemplo n.º 2
0
    //-------------------------------------------------------------------------
    private void consumePurchaseFailedEvent(string error)
    {
        Debug.Log("consumePurchaseFailedEvent: " + error);
        mMsg = "Consume Failed: " + error;

        PayReceiver.instance().PayResult(_ePayOptionType.ConsumeProduct, false, error);
    }
Exemplo n.º 3
0
    //-------------------------------------------------------------------------
    private void purchaseFailedEvent(int errorCode, string errorMessage)
    {
        Debug.Log("purchaseFailedEvent: " + errorMessage);
        mMsg = "Purchase Failed: " + errorMessage;

        PayReceiver.instance().PayResult(_ePayOptionType.PurchaseProduct, false, errorMessage);
    }
Exemplo n.º 4
0
    //-------------------------------------------------------------------------
    private void purchaseSucceededEvent(Purchase purchase)
    {
        Debug.Log("purchaseSucceededEvent: " + purchase);
        mMsg = "PURCHASED Succeeded:" + purchase.ToString();

        PayReceiver.instance().PayResult(_ePayOptionType.PurchaseProduct, true, purchase);
    }
Exemplo n.º 5
0
    //-------------------------------------------------------------------------
    private void queryInventoryFailedEvent(string error)
    {
        Debug.Log("queryInventoryFailedEvent Failed: " + error);
        mMsg = error;

        PayReceiver.instance().PayResult(_ePayOptionType.QueryInventory, false, mMsg);
    }
Exemplo n.º 6
0
    //-------------------------------------------------------------------------
    private void queryInventorySucceededEvent(Inventory inventory)
    {
        Debug.Log("queryInventorySucceededEvent: " + inventory);
        if (inventory != null)
        {
            mMsg       = inventory.ToString();
            mInventory = inventory;
        }

        PayReceiver.instance().PayResult(_ePayOptionType.QueryInventory, true, inventory);
    }
Exemplo n.º 7
0
    //-------------------------------------------------------------------------
    void _initNativeMsgReceiverListener()
    {
        var native_receiver = NativeReceiver.instance();

        native_receiver.TakePhotoReceiverListener = this;
        native_receiver.AudioControlListener      = this;
        var speech_receiver = SpeechReceiver.instance();

        speech_receiver.SpeechListener = this;
        var pay_receiver = PayReceiver.instance();

        pay_receiver.PayReceiverListener = this;
    }
Exemplo n.º 8
0
        //---------------------------------------------------------------------
        void _initNativeMsgReceiverListener()
        {
            var native_receiver = NativeReceiver.Instance();

            native_receiver.TakePhotoReceiverListener = this;
            native_receiver.AudioControlListener      = this;
            var pay_receiver = PayReceiver.instance();

            pay_receiver.PayReceiverListener = this;
            var thirdparty_login_receiver = ThirdPartyLoginReceiver.instance();

            thirdparty_login_receiver.ThirdPartyLoginReceiverListener = this;

//#if (UNITY_IPHONE || UNITY_ANDROID) && !UNITY_EDITOR
//            ThirdPartyLogin.Instantce().initLogin(CasinosContext.Instance.Config.WeChatAppId);
//#endif
            //PushReceiver.instance();
            //OpenInstallReceiver.instance();
        }