// Set the closest viable crop to the villager as the target. // Make sure viable crops exist before calling this function! // You will have a null reference otherwise! public void SetCropTargetToClosest() { compVillagerMovement.cropTarget = foodController.GetClosestViableCrop(transform.position); compVillagerMovement.destinationIsFood = true; }