private void OnParticleCollision(GameObject other) { scoreDisplay.ScoreHit(scorePerHit); hitPoints--; if (hitPoints < 1) { KillEnemy(); } }
private void OnParticleCollision(GameObject other) { scoreDisplay.ScoreHit(scorePerHit); hitPoints--; if (hitPoints < 1) { KillEnemy(); } }