My enemy AI arnt reacting to my bullet prefab they both have box colliers and heres the code for when the zombie gets hit with the bullet
function OnTriggerEnter (other: Collider) {
if (other.gameObject.CompareTag("Bullet")){
moveSpeed = 0;
}
}
but the bullet just goes through the zombie and the zombie wont do anything what am I doing wrong? (Yes the bullet object has the Bullet tag)