📅  最后修改于: 2022-03-11 14:48:43.956000             🧑  作者: Mango
//Make sure you don't add anything to y
agent.SetDestination(attackPoint.position + new Vector3(Random.Range(-10, 10), 0, Random.Range(-10, 10)));