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