浏览代码

服装店开启提示

zhaoyang 3 年之前
父节点
当前提交
d7c09a0d98
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      GameClient/Assets/Game/HotUpdate/Data/FunctionOpenDataManager.cs

+ 10 - 2
GameClient/Assets/Game/HotUpdate/Data/FunctionOpenDataManager.cs

@@ -156,14 +156,22 @@ namespace GFGGame
                 if (StorageDataManager.Instance.GetStorageValue(ConstStorageId.FUNCTION_OPEN + cfg.index) == 1) return true;
                 if (StorageDataManager.Instance.GetStorageValue(ConstStorageId.FUNCTION_OPEN + cfg.index) == 1) return true;
 
 
                 List<int> _currentList3 = DressUpMenuSuitDataManager.GetSuitIDList();
                 List<int> _currentList3 = DressUpMenuSuitDataManager.GetSuitIDList();
-                if (_currentList3.Count == 0) return false;
+                if (_currentList3.Count == 0)
+                {
+                    if (showTips) PromptController.Instance.ShowFloatTextPrompt(string.Format("收集一套“天衣”套装后解锁"));
+                    return false;
+                }
                 _currentList3 = SuitUtil.SortSuitListByHighRarity(_currentList3);
                 _currentList3 = SuitUtil.SortSuitListByHighRarity(_currentList3);
                 if (SuitCfgArray.Instance.GetCfg(_currentList3[0]).rarity == ConstDressRarity.Rarity_TIANYI)
                 if (SuitCfgArray.Instance.GetCfg(_currentList3[0]).rarity == ConstDressRarity.Rarity_TIANYI)
                 {
                 {
                     StorageSProxy.ReqSetClientValue(ConstStorageId.FUNCTION_OPEN + cfg.index, 1).Coroutine();
                     StorageSProxy.ReqSetClientValue(ConstStorageId.FUNCTION_OPEN + cfg.index, 1).Coroutine();
                     return true;
                     return true;
                 }
                 }
-                if (showTips) PromptController.Instance.ShowFloatTextPrompt(string.Format("收集一套“天衣”套装后开启"));
+                else
+                {
+                    if (showTips) PromptController.Instance.ShowFloatTextPrompt(string.Format("收集一套“天衣”套装后解锁"));
+                }
+
             }
             }
             return false;
             return false;