ソースを参照

修复剧情cg不消失的问题

leiyasi 1 年間 前
コミット
51608e0c45

+ 0 - 1
GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs

@@ -165,7 +165,6 @@ namespace GFGGame
 
         public static void UpdateDialogAnim(string value, ref GameObject animObj)
         {
-            StoryDialogDataManager.Instance.waiting = false;
             if (value == "0")
             {
                 if(animObj != null)

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

@@ -366,7 +366,6 @@ namespace GFGGame
                 {
                     delay = _currentStepCfg.blankScreenDur;
                     UpdatePic("0");
-                    UpdateAnim("0");
                 }
             }
             if (delay > 0)
@@ -822,18 +821,21 @@ namespace GFGGame
                 // 播放动画
                 else
                 {
-
-                    StoryDialogDataManager.Instance.waiting = true;
-
+                    SceneController.UpdateDialogAnim(value, ref _animObject);
+                    _animObject.SetActive(false);
+                    _canClickBtnNext = false;
                     _ui.m_showMask.Play(() =>
                     {
-                        _ui.m_hideMask.Play();
-                        _ui.m_showAnimMask.Play();
+                        _canClickBtnNext = true;
+                        if (_animObject != null)
+                        {
+                            _ui.m_hideMask.Play();
+                            _ui.m_showAnimMask.Play();
+                            _animObject.SetActive(true);
+                        }
                         //SceneController.ControlBgVisible(_sceneObject, false);
-                        SceneController.UpdateDialogAnim(value, ref _animObject);
                     });
                     
-
                 }
                 
             }