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