private void Attack()
 {
     if (playerInRange && Time.time >= nextAttack && !isDead)
     {
         if (gameObject.transform.position.x > target.position.x)
         {
             gameObject.transform.localScale = new Vector3(-1, 1, 1);
         }
         enemyAttackController.BossAttack((DeathBossAttacks)Random.Range(0, 2));
         nextAttack = Time.time + characterStats.GETAttackCooldown();
     }
     else if (Time.time >= nextSummon && !isDead && enemyAttackController.GetCurrentAnimation() == "Idle")
     {
         enemyAttackController.BossAttack(DeathBossAttacks.Summon);
         nextSummon = Time.time + summonCooldown;
     }
 }