void Update() { if (lastLocation != transform.position) { // transform.position = new Vector3(Random.Range(-45, 45), 1, Random.Range(-45, 45)); lastLocation = transform.position; brain.SetDestination(lastLocation); } }
void Update() { if (lastLocation != transform.position) { // transform.position = new Vector3(Random.Range(-45, 45), 1, Random.Range(-45, 45)); lastLocation = transform.position; brain.SetDestination(lastLocation); } }