//拿到购买回包 private void GetBuyExchangeItemRes(ShoppingRes res) { LoadingOverlay.Instance.Hide(); GlobalData.TrainingRoomModel.UpdateCurIntegral(res.Integral); foreach (var t in res.Awards) { RewardUtil.AddReward(t); } _vo.IsBuy = true; _model.BuyLaterUpdateExchangeShops(_vo); View.UpdateBuyLaterExchangeItemState(_vo); }
public void OnShoppingRes(short state, ShoppingRes down = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(513183, false)); if (NpcShopUI.Instance != null && NpcShopUI.Instance.get_gameObject().get_activeSelf()) { NpcShopUI.Instance.UpdateShoppingInfo(down.goodsId, down.stock); } } }