// IEnumerator Cast (float castTime, float decreaseValue)
    // {
    //     float t = castTime;
    //     while(t > 0)
    //     {
    //         yield return new WaitForEndOfFrame();
    //         movement = Vector3.zero;
    //         t -= Time.deltaTime;
    //         yield return null;
    //     }
    //  uiBar.DecreaseBreath(decreaseValue);
    // }

    void HandleAbilities()
    {
        if (currentAbility == airEffect)
        {
            if (uiBar.GetBreathValue() > 20 && airCd <= 0 && aetherEssence > 0)
            {
                animator.SetTrigger("AirPush");
                StartCoroutine(Cast(1.5f, 10));
            }
            else if (!uiBar.isChanging)
            {
                StartCoroutine(uiBar.ChangeColor(.1f, .15f, 20));
            }
        }
        else
        {
            if (aetherEssence > 0 && !uiBar.isChanging)
            {
                if (selectedAbility == fireEffect && fireball.readyToFire)
                {
                    animator.SetTrigger("FireBreath");
                    StartCoroutine(Cast(1f, 10f));
                }
                else if (currentAbility == waterEffect)
                {
                    transform.GetComponentInChildren <Projector>().enabled = true;
                }
            }
        }
    }