// Update is called once per frame
    void Update()
    {
        if (setCurrentHealthAtStart)
        {
            MaxHealth               = enemyMaster.enemyMaxHealth;
            CurrentHealth           = MaxHealth;
            oldCurrentHealth        = CurrentHealth;
            setCurrentHealthAtStart = false;
        }

        if (CurrentHealth <= 0)
        {
            Destroy(bodyCollider);
            if (deathCounter == 2)
            {
                thePlayer.GetComponent <PlayerStaminaManager>().playerCurrentStamina += 50;
            }
            deathCounter -= Time.deltaTime;
            fredIsDead    = true;
        }

        if (CurrentHealth > MaxHealth)
        {
            CurrentHealth = MaxHealth;
        }

        if (deathCounter <= 0)
        {
            thePlayerStats.AddExperience(expToGive);
            itemDropScript.CreateItem(enemyObject);
            deathCounter = 2;
            Destroy(gameObject);
        }

        enemyHealthPercent = (float)(double)CurrentHealth / MaxHealth * 100;

        /*(float)(double) was
         *     just something I found online on how to convert to percentages (not sure how it works)*/
    }