From e6fe4b49dbbb1820f0a06d03eb711a71792dfcc0 Mon Sep 17 00:00:00 2001 From: yurui <952870061@qq.com> Date: Wed, 16 Oct 2024 14:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BC=95=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectNLD/Assets/Code/Scripts/Gameplay/Guide/GuideStep.cs | 5 ++--- ProjectNLD/Assets/Config/Data/guidecfg_guideconfig.json | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Guide/GuideStep.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Guide/GuideStep.cs index 3bcf5066b05..db3429321b9 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Guide/GuideStep.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Guide/GuideStep.cs @@ -840,9 +840,8 @@ namespace Gameplay.Guide public WaitLevelOver(DataGuideCfg cfg) : base(cfg) { if (Cfg.GuideTypeParams.Length <= 0) - this.isContinue = false; - - if (Cfg.GuideTypeParams.Length > 0 && bool.TryParse(Cfg.GuideTypeParams[0], out bool isContinue)) + isContinue = false; + else if (Cfg.GuideTypeParams.Length > 0 && bool.TryParse(Cfg.GuideTypeParams[0], out bool isContinue)) this.isContinue = isContinue; else throw new Exception($"引导id:{Cfg.Id}, 引导类型:{Cfg.GuideStepType},第1个参数类型错误:应该为bool类型"); diff --git a/ProjectNLD/Assets/Config/Data/guidecfg_guideconfig.json b/ProjectNLD/Assets/Config/Data/guidecfg_guideconfig.json index b6bd845734b..0acb71a0195 100644 --- a/ProjectNLD/Assets/Config/Data/guidecfg_guideconfig.json +++ b/ProjectNLD/Assets/Config/Data/guidecfg_guideconfig.json @@ -51,9 +51,7 @@ "IsComplete": false, "StepStartDelay": 0, "GuideStepType": 9, - "GuideTypeParams": [ - "False" - ], + "GuideTypeParams": [], "GuideCompleteType": 18, "CompleteTypeParams": [], "ArrowDirection": 0,