From cffb388500d0577d7cd4bde799098316c7927bd8 Mon Sep 17 00:00:00 2001 From: liutao <821580467@qq.com> Date: Thu, 15 Aug 2024 15:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=AF=BB=E8=B7=AF=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectNLD/Assets/Code/Scripts/Gameplay/Area/Path/PathFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/Path/PathFinder.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/Path/PathFinder.cs index f967dc3dfaa..aa2a8a06977 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/Path/PathFinder.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/Path/PathFinder.cs @@ -161,7 +161,7 @@ namespace Gameplay } } - if (result.Count == 1 && !MapUtils.CanPass(moveLevel, toData)) + if (result.Count == 1 && !CanPass(to, moveUnit)) { // 只有一格 且下一格子不可通行,则无法到达 result.Clear();