Ejemplo n.º 1
0
 public static Run OnDelegate(SimpleEvent aDelegate, System.Action aAction)
 {
     var tmp = new Run();
     tmp.action = _RunOnDelegate(tmp, aDelegate, aAction);
     tmp.Start();
     return tmp;
 }
Ejemplo n.º 2
0
 public static Run Lerp(float aDuration, System.Action<float> aAction)
 {
     var tmp = new Run();
     tmp.action = _RunLerp(tmp, aDuration, aAction);
     tmp.Start();
     return tmp;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public static Run EachFrame(System.Action aAction)
 {
     var tmp = new Run();
     tmp.action = _RunEachFrame(tmp, aAction);
     tmp.Start();
     return tmp;
 }
Ejemplo n.º 5
0
 public static Run Coroutine(IEnumerator aCoroutine)
 {
     var tmp = new Run();
     tmp.action = _Coroutine(tmp, aCoroutine);
     tmp.Start();
     return tmp;
 }
Ejemplo n.º 6
0
 public static Run After(float aDelay, System.Action aAction)
 {
     var tmp = new Run();
     tmp.action = _RunAfter(tmp, aDelay, aAction);
     tmp.Start();
     return tmp;
 }
Ejemplo n.º 7
0
 public Run ExecuteWhenDone(System.Action aAction)
 {
     var tmp = new Run();
     tmp.action = _WaitFor(aAction);
     tmp.Start();
     return tmp;
 }
Ejemplo n.º 8
0
 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;
 }