public static Run OnDelegate(SimpleEvent aDelegate, System.Action aAction) { var tmp = new Run(); tmp.action = _RunOnDelegate(tmp, aDelegate, aAction); tmp.Start(); return tmp; }
public static Run Lerp(float aDuration, System.Action<float> aAction) { var tmp = new Run(); tmp.action = _RunLerp(tmp, aDuration, aAction); tmp.Start(); return tmp; }
public static Run Every(float aInitialDelay, float aDelay, System.Action aAction) { var tmp = new Run(); tmp.action = _RunEvery(tmp, aInitialDelay, aDelay, aAction); tmp.Start(); return tmp; }
public static Run EachFrame(System.Action aAction) { var tmp = new Run(); tmp.action = _RunEachFrame(tmp, aAction); tmp.Start(); return tmp; }
public static Run Coroutine(IEnumerator aCoroutine) { var tmp = new Run(); tmp.action = _Coroutine(tmp, aCoroutine); tmp.Start(); return tmp; }
public static Run After(float aDelay, System.Action aAction) { var tmp = new Run(); tmp.action = _RunAfter(tmp, aDelay, aAction); tmp.Start(); return tmp; }
public Run ExecuteWhenDone(System.Action aAction) { var tmp = new Run(); tmp.action = _WaitFor(aAction); tmp.Start(); return tmp; }
public static Run OnGUI(float aDuration, System.Action aAction) { var tmp = new Run(); tmp.onGUIaction = aAction; if (aDuration > 0.0f) tmp.action = _RunAfter(tmp, aDuration, null); else tmp.action = null; tmp.Start(); CoroutineHelper.Instance.Add(tmp); return tmp; }