How to set multiple enemies?

I need to be able to attack multiple enemies at the same time. Right now I can only attack one enemy at a time. I also don’t want to have a key to target one enemy. Here is the code(it’s from BergZergArcade). Thanks for any and all help.

using UnityEngine;
using System.Collections;

public class PlayerAttack : MonoBehaviour {
	public GameObject target;
	public float attackTimer;
	public float cooldown; 

	// Use this for initialization
	void Start () {
		attackTimer = 0;
		cooldown = .8f;
	}
	
	// Update is called once per frame
	void Update () {
		if(attackTimer > 0)
			attackTimer -= Time.deltaTime;
		
		if(attackTimer < 0)
			attackTimer = 0;
		
	    if(Input.GetKeyDown(KeyCode.F)){
			if(attackTimer == 0){
			Attack();
			attackTimer = cooldown;
				
		   }
	    }
		
	}
	
	private void Attack(){
		float distance = Vector3.Distance(target.transform.position, transform.position);
		
		Vector3 dir = (target.transform.position - transform.position).normalized;
		
		float direction = Vector3.Dot(dir, transform.forward);
		
		//Debug.Log(direction);
		
		if(distance < 2.5f){
			if(direction > 0){
		EnemyHealth eh = (EnemyHealth)target.GetComponent("EnemyHealth");
		eh.AddjustCurrentHealth(-12);
				
			}
		}
	}
}

Use an array of targets, then when attacking loop for each target in the array :

public GameObject[] target;

    private void Attack(){
        for (int i = 0; i < target.Length; i++)
        {
			float distance = Vector3.Distance(target*.transform.position, transform.position);*

_ Vector3 dir = (target*.transform.position - transform.position).normalized;*_

* float direction = Vector3.Dot(dir, transform.forward);*

* //Debug.Log(direction);*

* if(distance < 2.5f){*
* if(direction > 0){*
_ EnemyHealth eh = (EnemyHealth)target*.GetComponent(“EnemyHealth”);
eh.AddjustCurrentHealth(-12);*_

* }*
* }*
}
}