/// <summary>
    /// IEnumerator for LavaOverflow, triggered when taken damage at 2nd phase or when 50 seconds are up and dmg has not been taken in that time. Timer in FixedUpdate
    /// </summary>
    /// <returns></returns>
    IEnumerator LavaOverflow()
    {
        lavaOverflowTimer  = 0;
        lavaOverflowActive = true;
        StopMoving();
        LavaOverflowParticleSys.GetComponent <ParticleSystem>().Play();
        yield return(new WaitForSeconds(lavaOverflowDuration));

        LavaOverflowParticleSys.GetComponent <ParticleSystem>().Stop();
        lavaOverflowActive = false;
        lavaOverflowTimer  = 0;
    }
 void BossDead()
 {
     debugText.GetComponent <Text>().gameObject.SetActive(true);
     magmaBreathTimer  = 0;
     magmaBreathActive = false;
     magmaParticle.Stop();
     lavaOverflowTimer  = 0;
     lavaOverflowActive = false;
     LavaOverflowParticleSys.GetComponent <ParticleSystem>().Stop();
     lavaActive = false;
     StartCoroutine(ChangeScene());
     //boss death animation here probably as well as some other stuff if neccessary
 }