IEnumerator DelayBlockingExits()
    {
        yield return(new WaitForSeconds(1f));

        BlockExits();
        GlobalStuff.UnfreezeAll();
        GlobalStuff.RegainAllControl();
        EnemySpawner.Instance.Initialize();
    }
示例#2
0
    private void DeactivateUltimate()
    {
        foreach (var e in FindObjectsOfType <Enemy>())
        {
            e.Damage(ultimateDamage, Character.Effectiveness.SUPER);
        }

        // LevelManager.Instance.Player1.GetComponent<Movement>().enabled = true;
        // LevelManager.Instance.Player2.GetComponent<Movement>().enabled = true;
        GlobalStuff.UnfreezeSpawning();
        GlobalStuff.UnfreezeAll();
        GlobalStuff.RegainAllControl();
    }