Esempio n. 1
0
    public IEnumerator WaitForLoaded(bool value, RunAfterLoad callback)
    {
        Debug.Log("Wait for bool");
        yield return(new WaitUntil(() => value == true));

        callback();
        Debug.Log("Waited for bool;");
    }
Esempio n. 2
0
    public IEnumerator WaitForSeconds(float seconds, RunAfterLoad callback)
    {
        Debug.Log("Wait for sec");
        yield return(new WaitForSeconds(seconds));

        callback();
        Debug.Log("Waited for sec;");
    }