示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#4
0
 public static Run EachFrame(System.Action aAction)
 {
     var tmp = new Run();
     tmp.action = _RunEachFrame(tmp, aAction);
     tmp.Start();
     return tmp;
 }
示例#5
0
 public static Run Coroutine(IEnumerator aCoroutine)
 {
     var tmp = new Run();
     tmp.action = _Coroutine(tmp, aCoroutine);
     tmp.Start();
     return tmp;
 }
示例#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;
 }
示例#7
0
 public Run ExecuteWhenDone(System.Action aAction)
 {
     var tmp = new Run();
     tmp.action = _WaitFor(aAction);
     tmp.Start();
     return tmp;
 }
示例#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;
 }