예제 #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);
            }
        }
예제 #2
0
 public static void onGoodUpgrade(GoodUpgradeEvent _Event)
 {
     onGoodUpgrade(_Event, false);
 }
예제 #3
0
 public void PushEventOnGoodUpgrade(GoodUpgradeEvent _Event)
 {
     _pushEventGoodUpgrade(_Event);
 }
예제 #4
0
 protected virtual void _pushEventGoodUpgrade(GoodUpgradeEvent _Event)
 {
 }
예제 #5
0
 protected override void _pushEventGoodUpgrade(GoodUpgradeEvent _Event)
 {
     pushEvent(_Event);
 }