private void OnDisable() { nowType = ShopHelper.ChargeType.None; Messenger.Broadcast("UIDialogChargeShopHide", MessengerMode.DONT_REQUIRE_LISTENER); Messenger.RemoveListener("OnUpdateGoods", UpdateMyGoods); Messenger.RemoveListener("OnBuyShopItem", RefreshShopItems); }
// 충전소 셋팅 public void SetChargeShopTap(ShopHelper.ChargeType type, EGoodsType goGoods = EGoodsType.None) { if (nowType == type) { return; } for (int i = 0; i < _btnTaps.Length; i++) { _btnTaps[i].Set(false); } nowType = type; _btnTaps[(int)nowType].Set(true); // 업데이트 SetCharageShop(); UpdateMyGoods(); SetSelectItem(goGoods); // 문구 string warningKey = "UI_LABEL_SHOP_LIST_BUY_WARNING"; if (nowType == ShopHelper.ChargeType.RealCash) { warningKey = "UI_LABEL_SHOP_LIST_BUY_REALCASH_WARNING"; } _labelWarning.text = Localization.Get(warningKey); }
// 현재 탭에 따른 아이템리스트 타입 ItemListType GetItemListType(ShopHelper.ChargeType type) { if (type == ShopHelper.ChargeType.Ticket) { return(ItemListType.Ticket); } return(ItemListType.Normal); }