IEnumerator attacking()
    {
        anim.speed = 4;
        anim.SetInteger("Speed", BOMB);
        while (true)
        {
            yield return(new WaitForSeconds(1f));

            anim.speed += 2;
            if (anim.speed == 12)
            {
                spawnBomb(bombBase, bombPrefab);
                anim.speed = 1;
                hitbox.playSound(BoomSound);
                hitbox.takenDamage(hitbox.hpMax, bombBase.ownerUnit);
            }
        }
    }