public void scareLocation(NavAgent person) { //target.position = coords; //target.position = new Vector3(8.18F, 11.35F, 0.59F); if (true) { person.setTarget(person.getCenter()); person.setView(this.GetComponent<Transform>().position); } }