private void recalculateTarget() { GameObject target = Targeting.FindNearestTarget(this.transform.position); if (target != null) { this.target = target.transform; } }