Esempio n. 1
0
        public static void onGoodUpgrade(GoodUpgradeEvent _Event, bool alsoPush)
        {
            SoomlaWpStore.domain.virtualGoods.VirtualGood good      = _Event.GetGood();
            SoomlaWpStore.domain.virtualGoods.UpgradeVG   upgradeVG = _Event.GetUpgradeVG();
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodUpgrade:" + good.getItemId() + " " + upgradeVG.getItemId());

            VirtualGood vg  = (VirtualGood)StoreInfo.GetItemByItemId(good.getItemId());
            UpgradeVG   vgu = null;

            if (upgradeVG != null)
            {
                vgu = (UpgradeVG)StoreInfo.GetItemByItemId(upgradeVG.getItemId());
            }
            StoreInventory.RefreshOnGoodUpgrade(vg, vgu);
            StoreEvents.OnGoodUpgrade(vg, vgu);

            if (alsoPush)
            {
                sep.PushEventOnGoodUpgrade(_Event);
            }
        }
Esempio n. 2
0
 public static void onGoodUpgrade(GoodUpgradeEvent _Event)
 {
     onGoodUpgrade(_Event, false);
 }
Esempio n. 3
0
 public void PushEventOnGoodUpgrade(GoodUpgradeEvent _Event)
 {
     _pushEventGoodUpgrade(_Event);
 }
Esempio n. 4
0
 protected virtual void _pushEventGoodUpgrade(GoodUpgradeEvent _Event)
 {
 }
Esempio n. 5
0
 protected override void _pushEventGoodUpgrade(GoodUpgradeEvent _Event)
 {
     pushEvent(_Event);
 }