Example #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);
 }
Example #2
0
 public void RemoveCoroutine(CustomCoroutine customCoroutine)
 {
     _coroutines.Remove(customCoroutine);
 }
Example #3
0
 public void AddCoroutine(CustomCoroutine customCoroutine)
 {
     _coroutines.Add(customCoroutine);
 }