更改停下的判断
This commit is contained in:
parent
dbf5da1dea
commit
ddbd0d2544
@ -135,7 +135,7 @@ public class RecuseNpc : MonoBehaviour
|
|||||||
float dis = Vector3.Distance(transform.position, currentTarget);
|
float dis = Vector3.Distance(transform.position, currentTarget);
|
||||||
|
|
||||||
// 停止条件
|
// 停止条件
|
||||||
if (movebool && dis <= 0.1f)
|
if (movebool && dis <= 0.25f)
|
||||||
{
|
{
|
||||||
Debug.Log("到达目标点");
|
Debug.Log("到达目标点");
|
||||||
nstate = Npcstate.idle;
|
nstate = Npcstate.idle;
|
||||||
|
Loading…
Reference in New Issue
Block a user