public void Die() { ///REMOVE ZOMBIE FROM LISTS /// var z = player.GetComponent <PlayerAttackHandler>().GetNearByZombies(); if (z.Contains(this.gameObject)) { z.Remove(this.gameObject); player.GetComponent <PlayerAttackHandler>().ChangeTarget(); } spawner.RemoveZombie(this.gameObject); stats.numOfZombiesKilled++; stats.AddPoints(zombieType); Destroy(gameObject); }