/// <summary> /// Start coroutine in this couroutine "thread". Will be stopped when parent coroutine is stopped. /// </summary> /// <returns>The main coroutine ret.</returns> /// <param name="ecoroutine">Coroutine method.</param> /// <param name="objectCoroutine">Here in .Value will be returned value.</param> /// <typeparam name="T">Type of returned parameter.</typeparam> public Coroutine StartChildCoroutineRet <T>(IEnumerator ecoroutine, out ObjectRetCrtn <T> objectCoroutine) { CheckCoroutineNameDebug(ecoroutine, true); return(StartChildCoroutineRet <T>(ecoroutine, out objectCoroutine, gameObject)); }
public Coroutine StartChildCoroutineRet <T>(IEnumerator ecoroutine, out ObjectRetCrtn <T> objectCoroutine, bool destroyWithParent) { return(ManagerCrtn.Instance.StartCoroutineRet <T>(ecoroutine, gameObject, out objectCoroutine, null, destroyWithParent)); }
/// <summary> /// Start coroutine in this couroutine "thread". Will be stopped when parent coroutine is stopped. /// </summary> /// <returns>The main coroutine ret.</returns> /// <param name="ecoroutine">Coroutine method.</param> /// <param name="objectCoroutine">Here in .Value will be returned value.</param> /// <typeparam name="T">Type of returned parameter.</typeparam> /// <param name="onObject">Object on which coroutine will be started (and destroyed with this object).</param> protected Coroutine StartChildCoroutineRet <T>(IEnumerator ecoroutine, out ObjectRetCrtn <T> objectCoroutine, UnityEngine.GameObject onObject) { CheckCoroutineNameDebug(ecoroutine, true); return(ManagerCrtn.Instance.StartCoroutineRet <T>(ecoroutine, onObject, out objectCoroutine)); }