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

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

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

            m_UnityPurchasing.CallStatic("dispatchReturnEvent", eventType, purchaseCatalog);
        }
Esempio n. 4
0
        public 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);
        }