// Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0) && !attacking && playerStamina.currStamina >= 5 && Time.timeScale == 1f && !playerStamina.GetActionLocked())
        {
            playerStamina.currStamina -= 5;
            StartCoroutine(SlashAndWait(.5f));
        }
        if (Input.GetMouseButton(1) && canBlock && !playerStamina.GetActionLocked())
        {
            playerStamina.SetStaminaDrain(true, .1f);
            pHealth.SetBlocking(true);
            transform.localRotation = Quaternion.Euler(new Vector3(0, 0, 90));
        }
        if (Input.GetMouseButtonUp(1) || !canBlock || playerStamina.GetActionLocked())
        {
            playerStamina.SetStaminaDrain(false, 0f);
            pHealth.SetBlocking(false);
            transform.localRotation = Quaternion.Euler(new Vector3(0, -90, 0));
        }
        if (Input.GetKeyDown(KeyCode.R) && !playerStamina.GetActionLocked())
        {
            pressedR++;
            if (pressedR % 2 == 1 && playerStamina.currStamina > 0)
            {
                playerStamina.SetStaminaDrain(true, .5f);
                adl.SetDamage(50);
                adl.SetBleedDamage(1f);
            }
            if (pressedR % 2 == 0)
            {
                playerStamina.SetStaminaDrain(false, 0f);
                adl.SetDamage(25);
                adl.SetBleedDamage(.5f);
            }
        }

        /*if (Input.GetKeyDown(KeyCode.F) && itmBar.GetHotbarArray() && pMana.currMana > 0){
         *      adl.SetDamage (20);
         *      adl.SetBleedDamage (.5f);
         *      pMana.InitiateDecrease(true);
         * }
         * if (pMana.currMana <= 0) {
         *      pMana.InitiateDecrease (false);
         * }*/
    }