Переглянути джерело

神都宸游 剧情可返回

huangxiaoyue 1 рік тому
батько
коміт
944fd4b6b7

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyShowView.cs

@@ -114,7 +114,7 @@ namespace GFGGame
             ViewManager.Show<StoryDialogView>(new object[] { stroyStartID, false, new OnCompleteStoryDialogCall(OnCompletePriorStoryDialog), null, true }, true);
         }
 
-        private static void OnCompletePriorStoryDialog(bool isSkip, object param)
+        private static void OnCompletePriorStoryDialog(bool done, object param)
         {
             ViewManager.DeleteViewStackCountDown(null, 2);
             ViewManager.Show<LeagueTeaPartyOverView>();

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

@@ -115,7 +115,7 @@ namespace GFGGame
             ViewManager.Show<StoryDialogView>(new object[] { stroyStartID, false, new OnCompleteStoryDialogCall(OnCompletePriorStoryDialog),null,false }, true);
         }
 
-        private static void OnCompletePriorStoryDialog(bool isSkip, object param)
+        private static void OnCompletePriorStoryDialog(bool done, object param)
         {
             //ViewManager.Show<StoryChapterView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(typeof(StoryChapterView).FullName), true);
         }

+ 2 - 4
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -177,8 +177,6 @@ namespace GFGGame
 
             _ui.m_btnAutoPlay.selected = _autoPlay;
             _ui.m_btnBack.visible = InstanceZonesDataManager.CheckLevelPass(100001001);
-            if (_storyStartID == "10151")
-                _ui.m_btnBack.visible = false;
 
             StoryDialogDataManager.Instance.Clear();
 
@@ -940,11 +938,11 @@ namespace GFGGame
             }
         }
 
-        private void Over(bool isSkip = true)
+        private void Over(bool done = true)
         {
             if (_onCompleteStoryDialogCall != null)
             {
-                _onCompleteStoryDialogCall(isSkip, _onCompleteStoryDialogCallParam);
+                _onCompleteStoryDialogCall(done, _onCompleteStoryDialogCallParam);
             }
             this.Hide();
         }

+ 6 - 4
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -388,11 +388,13 @@ namespace GFGGame
                 ViewManager.Show<OpenServerActivityView>();
         }
 
-        private static void OnCompletePriorStoryDialog(bool isSkip, object param)
+        private static void OnCompletePriorStoryDialog(bool done, object param)
         {
-            PlayerPrefs.SetString("seeOpenServerActivityStory" + GameGlobal.userId, "1");
-            ViewManager.DeleteViewStackCountDown(null, 1);
-            ViewManager.Show<OpenServerActivityView>();
+            if (done) { 
+                PlayerPrefs.SetString("seeOpenServerActivityStory" + GameGlobal.userId, "1");
+                ViewManager.DeleteViewStackCountDown(null, 1);
+                ViewManager.Show<OpenServerActivityView>();
+            }
         }
 
         private void OnClickBtnWanShiLi()