Exemplo n.º 1
0
    public IEnumerator CallAction(Action sentInAction)
    {
        actionIsHappening = true;
        dark.Make(1);
        while (dark.hasStarted)
        {
            yield return(new WaitForSeconds(0.1f));
        }

        sentInAction();

        dark.Make(0);
        actionIsHappening = false;
    }