private bool TryHeal()
    {
        if (Player.TeamHealth <= 0)
        {
            if (deniedSource != null && HealDeniedSound != null)
            {
                deniedSource.clip = HealDeniedSound;
                deniedSource.Play();
            }
        }

        if (healthContainer.Health < healthContainer.MaxHealth)
        {
            uiScript.ActivateTeamBar();

            if (TakeTeamHealth(regenerationPerSecond * Time.deltaTime, HealthRegenerationMultiplicator))
            {
                if (!isDead)
                {
                    healingAnim.SetBool("heal", true);
                }
                if (!audioSources[23].isPlaying)
                {
                    audioSources[23].Play();
                }
                return(true);
            }
            else
            {
                healingAnim.SetBool("heal", false);
            }
        }
        return(false);
    }