浏览代码

关卡未开启不能从来源跳转

zhaoyang 3 年之前
父节点
当前提交
66495332bf
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachOfItemView.cs

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachOfItemView.cs

@@ -116,7 +116,11 @@ namespace GFGGame
                     string value = infos[1];
                     var levelCfgId = int.Parse(value);
                     var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
-
+                    if (!MainStoryDataManager.CheckLevelUnlock(levelCfgId))
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt("关卡未开启");
+                        break;
+                    }
                     if (levelCfg.type == ConstInstanceZonesType.Story)
                     {
                         if ((string)_fromeViewDatas[0] == ViewName.DRESS_UP_FIGHT_VIEW)