Exemple #1
0
 public static CustomCoroutine StartCustomCoroutine(this MonoBehaviour mb, IEnumerator routine)
 {
     if (mb != null && routine != null)
     {
         CustomCoroutine customCoroutine = new CustomCoroutine(routine);
         mb.StartCoroutine(customCoroutine.Start());
         return(customCoroutine);
     }
     return(null);
 }
Exemple #2
0
 public void RemoveCoroutine(CustomCoroutine customCoroutine)
 {
     _coroutines.Remove(customCoroutine);
 }
Exemple #3
0
 public void AddCoroutine(CustomCoroutine customCoroutine)
 {
     _coroutines.Add(customCoroutine);
 }