Example #1
0
    public void TakeDamage(int damage)
    {
        damaged = true;

        enemy.TakeDamage(damage);
        //enemyAudio.Play();

        dead = enemy.isDead();

        if (dead)
        {
            Death();
        }
    }