Exemplo n.º 1
0
    private void MakeUninteractable(CanvasGroup cg, float delay)
    {
        CanvasAndDelay cnd = new CanvasAndDelay();

        cnd.cg    = cg;
        cnd.delay = delay;

        StartCoroutine("WaitAndMakeUninteractable", cnd);
    }
Exemplo n.º 2
0
    private IEnumerator WaitAndMakeUninteractable(CanvasAndDelay cnd)
    {
        yield return(new WaitForSeconds(cnd.delay));

        MakeUninteractable(cnd.cg);
    }