// Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            hudController.Pause();
        }
        if (hudController.gamePaused)
        {
            return;
        }



        //Running
        if (Input.GetKeyDown(KeyCode.LeftShift))
        {
            currentChar.ToggleSpeed();
        }

        if (Input.GetKeyUp(KeyCode.LeftShift))
        {
            currentChar.ToggleSpeed();
        }


        if (Input.GetKeyDown(KeyCode.Space))
        {
            Debug.Log("Dodge.");
            currentChar.Dodge();
        }


        if (Input.GetMouseButtonDown(0))
        {
            Debug.Log("Action One");
            currentChar.ActionOne();
        }

        if (Input.GetMouseButtonDown(1))
        {
            Debug.Log("Action Two");
            currentChar.ActionTwo();
        }

        //Key for Testing Death
        if (Input.GetKeyDown(KeyCode.E))
        {
            currentChar.TakeDamage(110);
        }
    }