示例#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 onMarketPurchase(string message)
        {
            Debug.Log("SOOMLA/UNITY onMarketPurchase:" + message);

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

            Events.OnMarketPurchase(pvi);
        }
示例#3
0
        public void onMarketRefund(string message)
        {
            StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketRefund:" + message);

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

            Events.OnMarketPurchaseStarted(pvi);
        }
示例#4
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);
        }
示例#5
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);
        }