private void addToDead(GameObject obj, HeroCard card) { if (card.CompareTag(tag)) { battleField.Remove(obj); card.dead(); } }