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("到达目标点");