private void OnParticleCollision(GameObject other) { if (other.GetComponent <PlayerController>()) { return; } if (health.GetHealth() <= 0) { Destroy(gameObject); GameObject deathVFX = Instantiate(deathExplosion, transform.position, Quaternion.identity) as GameObject; deathVFX.transform.parent = parent; Destroy(deathVFX, 1.5f); scoreHandler.AddToScore(score); } health.DealDamage(player.GetBulletDamage()); }