IEnumerator PhasingTime()
    {
        enemyLife.SetInvulnerable(true);
        if (!phase.endOfPhase)
        {
            phase.EndPhase();
        }
        yield return(new WaitUntil(() => GameController.gameControl.dialog.handlingDialog == false));


        yield return(new WaitForSeconds(.5f));

        bossPhase++;
        enemyLife.SetInvulnerable(false);

        phase.StartPhase("Boss" + wave.bossIndex, bossPhase, this, GetComponent <EnemyMovement>());
    }