浏览代码

精英通关后返回章节列表仍选中精英关卡

zhaoyang 2 年之前
父节点
当前提交
ef57a70697
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryController.cs

+ 6 - 4
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryController.cs

@@ -32,10 +32,12 @@ namespace GFGGame
                         MainStoryDataManager.currentLevelCfgId = 0;
 
                     }
-                    object[] objects = ViewManager.GetGoBackDatas(typeof(StoryChapterView).FullName);
-                    object obj = null;
-                    if (objects.Length > 1) obj = objects[1];
-                    ViewManager.Show(ViewName.STORY_CHAPTER_LIST_VIEW, obj, null, true);
+                    int index = 0;
+                    if (levelCfg.type == ConstInstanceZonesType.Story && levelCfg.subType == ConstInstanceZonesSubType.Hard)
+                    {
+                        index = 1;
+                    }
+                    ViewManager.Show(ViewName.STORY_CHAPTER_LIST_VIEW, index, null, true);
                 }
                 else
                 {