public void AssignTarget(GameObject nextTarget) { this.target = nextTarget; attack.AssignTarget(nextTarget); }