Exemplo n.º 1
0
        void onInitializePurchasing()
        {
            String result    = Purchasing.Initialize(m_Platform).ToString();
            int    eventType = (int)PurchasingEvent.INITIALIZATION;

            m_UnityPurchasing.CallStatic("dispatchReturnEvent", eventType, result);
        }
Exemplo n.º 2
0
        void onGetPurchasingVersion()
        {
            String promoVersion = Purchasing.GetPromoVersion();
            int    eventType    = (int)PurchasingEvent.VERSION;

            m_UnityPurchasing.CallStatic("dispatchReturnEvent", eventType, promoVersion);
        }
Exemplo n.º 3
0
        void onGetProductCatalog()
        {
            String purchaseCatalog = Purchasing.GetPurchasingCatalog();
            int    eventType       = (int)PurchasingEvent.CATALOG;

            m_UnityPurchasing.CallStatic("dispatchReturnEvent", eventType, purchaseCatalog);
        }
Exemplo n.º 4
0
        void onPurchasingCommand(String eventString)
        {
            String result    = Purchasing.InitiatePurchasingCommand(eventString).ToString();
            int    eventType = (int)PurchasingEvent.COMMAND;

            m_UnityPurchasing.CallStatic("dispatchReturnEvent", eventType, result);
        }
        static void UnityAdsPurchasingInitialize()
        {
            string result = Purchasing.Initialize(Instance).ToString();

            UnityAdsPurchasingDispatchReturnEvent((long)PurchasingEvent.INITIALIZATION, result);
        }
        static void UnityAdsPurchasingGetPurchasingVersion()
        {
            string result = Purchasing.GetPromoVersion();

            UnityAdsPurchasingDispatchReturnEvent((long)PurchasingEvent.VERSION, result);
        }
        static void UnityAdsPurchasingGetProductCatalog()
        {
            string result = Purchasing.GetPurchasingCatalog();

            UnityAdsPurchasingDispatchReturnEvent((long)PurchasingEvent.CATALOG, result);
        }
        static void UnityAdsDidInitiatePurchasingCommand(string eventString)
        {
            string result = Purchasing.InitiatePurchasingCommand(eventString).ToString();

            UnityAdsPurchasingDispatchReturnEvent((long)PurchasingEvent.COMMAND, result);
        }