更改停下的判断

This commit is contained in:
huyulong 2024-12-16 15:27:24 +08:00
parent dbf5da1dea
commit ddbd0d2544

View File

@ -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;