public static void onGoodBalanceChanged(GoodBalanceChangedEvent _Event, bool alsoPush) { SoomlaWpStore.domain.virtualGoods.VirtualGood good = _Event.GetGood(); int balance = _Event.GetBalance(); int amountAdded = _Event.GetAmountAdded(); SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodBalanceChanged:" + good.getItemId() + " " + balance.ToString() + " " + amountAdded.ToString()); VirtualGood vg = (VirtualGood)StoreInfo.GetItemByItemId(good.getItemId()); StoreInventory.RefreshOnGoodBalanceChanged(vg, balance, amountAdded); StoreEvents.OnGoodBalanceChanged(vg, balance, amountAdded); if (alsoPush) { sep.PushEventOnGoodBalanceChanged(_Event); } }
public static void onGoodBalanceChanged(GoodBalanceChangedEvent _Event) { onGoodBalanceChanged(_Event, false); }
public void PushEventOnGoodBalanceChanged(GoodBalanceChangedEvent _Event) { _pushEventGoodBalanceChanged(_Event); }
protected virtual void _pushEventGoodBalanceChanged(GoodBalanceChangedEvent _Event) { }
protected override void _pushEventGoodBalanceChanged(GoodBalanceChangedEvent _Event) { pushEvent(_Event); }