/// <summary> /// Waits while condition is true /// If timed out, callback will be invoked with false /// </summary> public static void WaitWhile(Func <bool> condiction, DoneHandler doneCallback, float timeoutSeconds) { CoroutineHelper.StartCoroutine(WaitWhileTrueCoroutine(condiction, doneCallback, timeoutSeconds)); }
public static void AfterSeconds(float time, Action callback) { CoroutineHelper.StartCoroutine(StartWaitingSeconds(time, callback)); }
public static void DoStart() { _mainThreadActions = new List <Action>(); CoroutineHelper.StartCoroutine(StartTicker()); }