i have come to an err and was wondering if you guys could help me
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Targetting : MonoBehaviour {
public List targets;
// Use this for initialization
void Start () {
targets = new List();
AddAllEnemies();
}
public void AddAllEnemies()
{
GameObject[ ] go = GameObject.FindGameObjectsWithTag(“Enemy”);
foreach(GameObject enemy in go)
AddTarget(enemy,transform);
}
public void AddTarget(Transform enemy)
{
targets.Add(enemy);
}
// Update is called once per frame
void Update () {
}
}
is what i have and i have an err that says
Assets/MoreScripts/Targetting.cs(20,25): error CS1501: No overload for method AddTarget' takes 2’ arguments
i have know idea what that means if you could help me that would be great
thanks in advance