public IEnumerator WaitForLoaded(bool value, RunAfterLoad callback) { Debug.Log("Wait for bool"); yield return(new WaitUntil(() => value == true)); callback(); Debug.Log("Waited for bool;"); }
public IEnumerator WaitForSeconds(float seconds, RunAfterLoad callback) { Debug.Log("Wait for sec"); yield return(new WaitForSeconds(seconds)); callback(); Debug.Log("Waited for sec;"); }