//Left Mouse click Attack
    void BasicAttack()
    {
        if (!useController)
        {
            if (Input.GetButton("Fire1"))
            {
                int index = wep.GetWeapon();

                if (index == 0 && axeCdReady)
                {
                    StartCoroutine(AxeCooldown());
                }

                if (index == 1 && swordCdReady)
                {
                    StartCoroutine(SwordCooldown());
                }

                if (index == 2 && spellCdReady && currentMana > spell.spellStats[6])
                {
                    StartCoroutine(SpellCooldown());
                }
            }
        }


        if (useController)
        {
            if (Input.GetButton("Fire1"))
            {
                int index = wep.GetWeapon();

                if (index == 0 && axeCdReady)
                {
                    StartCoroutine(AxeCooldown());
                }

                if (index == 1 && swordCdReady)
                {
                    StartCoroutine(SwordCooldown());
                }

                if (index == 2 && spellCdReady)
                {
                    StartCoroutine(SpellCooldown());
                }
            }
        }
    }