소스 검색

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

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
                 {