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); } }
public static void onGoodUpgrade(GoodUpgradeEvent _Event) { onGoodUpgrade(_Event, false); }
public void PushEventOnGoodUpgrade(GoodUpgradeEvent _Event) { _pushEventGoodUpgrade(_Event); }
protected virtual void _pushEventGoodUpgrade(GoodUpgradeEvent _Event) { }
protected override void _pushEventGoodUpgrade(GoodUpgradeEvent _Event) { pushEvent(_Event); }