guodong 3 жил өмнө
parent
commit
3ff9d1d7f8

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

@@ -157,7 +157,14 @@ namespace GFGGame
 
         private void OnClickBtnLookBack()
         {
-            ViewManager.Show(ViewName.STORY_LOOK_BACK_VIEW, _stroyStartID);
+            if(_ui.m_btnSkip.enabled)
+            {
+                ViewManager.Show(ViewName.STORY_LOOK_BACK_VIEW, _stroyStartID);
+            }
+            else
+            {
+                ViewManager.Show(ViewName.STORY_LOOK_BACK_VIEW, _dialogListLookBack);
+            }
         }
 
         private void OnBtnSkip()

+ 11 - 8
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLookBackView.cs

@@ -33,15 +33,18 @@ namespace GFGGame
         {
             base.OnShown();
             _ui.m_content.m_txtContent.text = "";
-            _dialogListLookBack = new List<string>();
-            string stroyStartID = (string)this.viewData;
-
-            ShowNextStep(stroyStartID);
-
-
-
+            if (this.viewData is string)
+            {
+                string stroyStartID = (string)this.viewData;
+                _dialogListLookBack = new List<string>();
+                ShowNextStep(stroyStartID);
+            }
+            else
+            {
+                _dialogListLookBack = (List<string>)this.viewData;
+            }
 
-            if (stroyStartID != null)
+            if (_dialogListLookBack != null)
             {
                 string content = "";
                 foreach (string words in _dialogListLookBack)