Browse Source

修改引导bug

lzx 16 hours ago
parent
commit
50e4d4a3bd
1 changed files with 12 additions and 28 deletions
  1. 12 28
      Assets/Scripts/GameUI/UI/GuidePanel/PlayerGuideManager.cs

+ 12 - 28
Assets/Scripts/GameUI/UI/GuidePanel/PlayerGuideManager.cs

@@ -653,8 +653,8 @@ namespace Fort23.Mono
                     break;
                     break;
             }
             }
         }
         }
-        
-        
+
+
         public void SetfxTransImageVisiable(bool b, int type = 0)
         public void SetfxTransImageVisiable(bool b, int type = 0)
         {
         {
             switch (type)
             switch (type)
@@ -707,20 +707,15 @@ namespace Fort23.Mono
                 }
                 }
             }
             }
 
 
-            HideDialogBox(false);
-            // if (guideConfig.SpeakerStyle == 3)
-            // {
-            //     HideDialogBox(false);
-            // }
-            // else
-            // {
-            //     HideDialogBox();
-            // }
-            // if (IsUseServerData)
-            // {
-            //     PlayerManager.Instance.PlayerGuideDataComponent.UpdateData(configID);
-            //     await HttpSendManager.Instance.SendSaveGuideDataRequest(configID, SaveGuideDataCallBack); //记录服务器
-            // }
+            if (guideConfig.desc == -1)
+            {
+                HideDialogBox();
+            }
+            else
+            {
+                HideDialogBox(false);
+            }
+
 
 
             if (guideConfig.IsSkip == 1)
             if (guideConfig.IsSkip == 1)
             {
             {
@@ -737,7 +732,6 @@ namespace Fort23.Mono
 
 
             int[] fPos = guideConfig.fingerPos;
             int[] fPos = guideConfig.fingerPos;
             int[] dPos = guideConfig.dialogPos;
             int[] dPos = guideConfig.dialogPos;
-          
 
 
 
 
             isReadFingerPos = true;
             isReadFingerPos = true;
@@ -747,14 +741,13 @@ namespace Fort23.Mono
             SetFingerPos(fPos);
             SetFingerPos(fPos);
 
 
             SetDialogPos(dPos);
             SetDialogPos(dPos);
-            
+
             SetBlackBaseVisiable(true);
             SetBlackBaseVisiable(true);
 
 
             SetBlackAlpha(guideConfig.blackAlpha);
             SetBlackAlpha(guideConfig.blackAlpha);
             ShowDialogBox(action, str);
             ShowDialogBox(action, str);
             await dialogBox.SetDiTex(guideConfig, guideConfig.SpeakerImage);
             await dialogBox.SetDiTex(guideConfig, guideConfig.SpeakerImage);
             UIManager.Instance.SetEventSystemEnable(true);
             UIManager.Instance.SetEventSystemEnable(true);
-
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -1219,15 +1212,6 @@ namespace Fort23.Mono
             _customVectorTween?.Kill();
             _customVectorTween?.Kill();
             _customVectorTween = null;
             _customVectorTween = null;
             UIManager.Instance.GetComponent<GuidePanel>().transform.SetAsLastSibling();
             UIManager.Instance.GetComponent<GuidePanel>().transform.SetAsLastSibling();
-
-            // if (guideConfig.SpeakerStyle == 3)
-            // {
-            //     HideDialogBox(false);
-            // }
-            // else
-            // {
-            //     HideDialogBox();
-            // }
             HideDialogBox();
             HideDialogBox();
             SetfxTransVisiable(false);
             SetfxTransVisiable(false);
             SetMaskTarget(null);
             SetMaskTarget(null);