void UpdateMovePosition(Vector3 p) { move_p = new Vector3(p.x, transform.position.y, p.z); moving = true; AIPathFinder.canSearch = true; //AIPathFinder.canMove=true; AIPathFinder.SetVectorTarget(move_p); AIPathFinder.SearchPath(); ResetStuckSys(); }