|
@@ -202,7 +202,15 @@ namespace GFGGame
|
|
|
LuckyBoxCfg luckyBoxCfg = LuckyBoxCfgArray.Instance.GetCfg(LuckyBoxBonusDataCache.currentBoxId);
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.MAIN_UI_BTN_ZHAI_XING) <= 0)
|
|
|
{
|
|
|
+
|
|
|
Timers.inst.AddUpdate(UpdateToCheckGuide);
|
|
|
+ int count = ItemDataManager.GetItemNum(luckyBoxCfg.costID);
|
|
|
+ if (count < luckyBoxCfg.costNumTen)
|
|
|
+ {
|
|
|
+ ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID);
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt(itemCfg.name + "不足");
|
|
|
+ return;
|
|
|
+ }
|
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
|
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, true);
|
|
|
ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
|