From ddbd0d254442c24e911c546f0c609fa824c366d2 Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Mon, 16 Dec 2024 15:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=81=9C=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Script/npc/RecuseNpc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaofang/Assets/Script/npc/RecuseNpc.cs b/xiaofang/Assets/Script/npc/RecuseNpc.cs index 1b102ce7..612d290f 100644 --- a/xiaofang/Assets/Script/npc/RecuseNpc.cs +++ b/xiaofang/Assets/Script/npc/RecuseNpc.cs @@ -135,7 +135,7 @@ public class RecuseNpc : MonoBehaviour float dis = Vector3.Distance(transform.position, currentTarget); // 停止条件 - if (movebool && dis <= 0.1f) + if (movebool && dis <= 0.25f) { Debug.Log("到达目标点"); nstate = Npcstate.idle;