Browse Source

服装店开启提示

zhaoyang 3 years ago
parent
commit
d7c09a0d98
1 changed files with 10 additions and 2 deletions
  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;
 
                 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);
                 if (SuitCfgArray.Instance.GetCfg(_currentList3[0]).rarity == ConstDressRarity.Rarity_TIANYI)
                 {
                     StorageSProxy.ReqSetClientValue(ConstStorageId.FUNCTION_OPEN + cfg.index, 1).Coroutine();
                     return true;
                 }
-                if (showTips) PromptController.Instance.ShowFloatTextPrompt(string.Format("收集一套“天衣”套装后开启"));
+                else
+                {
+                    if (showTips) PromptController.Instance.ShowFloatTextPrompt(string.Format("收集一套“天衣”套装后解锁"));
+                }
+
             }
             return false;