예제 #1
0
    private void OnParticleCollision(GameObject other)
    {
        scoreDisplay.ScoreHit(scorePerHit);

        hitPoints--;
        if (hitPoints < 1)
        {
            KillEnemy();
        }
    }