ok, I am trying to get each zombie to ignore the collisions of the others. and cant get past this error:
Assets/Scripts/EnemyCollision.cs(19,67): error CS0117: UnityEngine.GameObject[ ]' does not contain a definition for Collider’
ok here is my script:
using UnityEngine;
using System.Collections;
public class EnemyCollision : MonoBehaviour {
public GameObject[] Zombie;
public GameObject ThisEnemy;
// Use this for initialization
void Start ()
{
Zombie = (GameObject[]) GameObject.FindGameObjectsWithTag ("Zombie");
}
// Update is called once per frame
void Update ()
{
Physics.IgnoreCollision(ThisEnemy.collider,Zombie.Collider);
}
}