public static void StartCoroutineDelay(this MonoBehaviour _monoBehaviour, FuncCallback0 fn0, float delay = -1)
 {
     if (delay < 0)
     {
         fn0();
     }
     else
     {
         _monoBehaviour.StartCoroutine(_monoBehaviour.DelayedCoroutine(fn0, delay));
     }
 }
Exemple #2
0
 public static Coroutine RunDelayed(this MonoBehaviour mb, float delay, System.Action a)
 {
     return(mb.StartCoroutine(mb.DelayedCoroutine(delay, a)));
 }