private void OnTriggerEnter(Collider other) { if (other.tag == ZOMBIE_TAG) { Zombie zombieComp = other.gameObject.GetComponent <Zombie>(); zombieComp.BeginAttack(); } }