예제 #1
0
    public void onGoodUnequipped(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onVirtualGoodUnEquipped:" + message);

        EquippableVG vg = (EquippableVG)StoreInfo.GetItemByItemId(message);

        Events.OnGoodUnEquipped(vg);
    }
예제 #2
0
    public void onRestoreTransactions(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactions:" + message);

        bool success = Convert.ToBoolean(int.Parse(message));

        Events.OnRestoreTransactions(success);
    }
예제 #3
0
    public void onItemDetailsRetrieved(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onItemDetailsRetrieved");

        string[] vars = Regex.Split(message, "#SOOM#");

        Events.OnItemDetailsRetrieved(new MarketItemDetails(vars[0], vars[1], vars[2], vars[3]), Boolean.Parse(vars[4]));
    }
예제 #4
0
    public void onMarketRefund(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketRefund:" + message);

        PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(message);

        Events.OnMarketPurchaseStarted(pvi);
    }
예제 #5
0
    public void onGoodUpgrade(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodUpgrade:" + message);

        string[] vars = Regex.Split(message, "#SOOM#");

        VirtualGood vg  = (VirtualGood)StoreInfo.GetItemByItemId(vars[0]);
        UpgradeVG   vgu = (UpgradeVG)StoreInfo.GetItemByItemId(vars[1]);

        Events.OnGoodUpgrade(vg, vgu);
    }
예제 #6
0
    public void onGoodBalanceChanged(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodBalanceChanged:" + message);

        string[] vars = Regex.Split(message, "#SOOM#");

        VirtualGood vg          = (VirtualGood)StoreInfo.GetItemByItemId(vars[0]);
        int         balance     = int.Parse(vars[1]);
        int         amountAdded = int.Parse(vars[2]);

        Events.OnGoodBalanceChanged(vg, balance, amountAdded);
    }
예제 #7
0
        public void onStoreControllerInitialized()
        {
            ExampleLocalStoreInfo.Init();

            // some usage examples for add/remove currency
            // some examples
            if (ExampleLocalStoreInfo.VirtualCurrencies.Count > 0)
            {
                try {
                    StoreInventory.GiveItem(ExampleLocalStoreInfo.VirtualCurrencies [0].ItemId, 4000);
                    StoreUtils.LogDebug("SOOMLA ExampleEventHandler", "Currency balance:" + StoreInventory.GetItemBalance(ExampleLocalStoreInfo.VirtualCurrencies [0].ItemId));
                } catch (VirtualItemNotFoundException ex) {
                    StoreUtils.LogError("SOOMLA ExampleEventHandler", ex.Message);
                }
            }
        }
예제 #8
0
    public void onClosingStore(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onClosingStore");

        Events.OnClosingStore();
    }
예제 #9
0
    public void onBillingNotSupported(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onBillingNotSupported");

        Events.OnBillingNotSupported();
    }
예제 #10
0
    public void onUnexpectedErrorInStore(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore");

        Events.OnUnexpectedErrorInStore();
    }
예제 #11
0
    public void onRestoreTransactionsStarted(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsStarted");

        Events.OnRestoreTransactionsStarted();
    }
예제 #12
0
    public void onIabServiceStopped(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onIabServiceStopped");

        Events.OnIabServiceStopped();
    }
예제 #13
0
    public void onItemDetailsRetrievedFailedEvent(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY ItemDetailsRetrievedFailedEvent");

        Events.OnItemDetailsRetrievedFailed();
    }
예제 #14
0
    public void onStoreControllerInitialized(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onStoreControllerInitialized");

        Events.OnStoreControllerInitialized();
    }