From 4ca91767bb002d7cff0b29c49a997a629dd94d31 Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Fri, 13 Dec 2024 19:23:39 +0800 Subject: [PATCH] =?UTF-8?q?npc=E7=A7=BB=E5=8A=A8=E9=80=BB=E8=BE=91?= 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 d064d27a..b5b168ce 100644 --- a/xiaofang/Assets/Script/npc/RecuseNpc.cs +++ b/xiaofang/Assets/Script/npc/RecuseNpc.cs @@ -112,7 +112,7 @@ public class RecuseNpc : MonoBehaviour movebool = true; float dis = Vector3.Distance(this.transform.position, currentTarget); // 判断是否到达目标点 - if (movebool && dis < 0.1) + if (movebool && dis < 0.1f) { Debug.Log("到达目标点");