public Coroutine StartCoroutine(IEnumerator routine) { if (m_CoroutineCmnt == null) { m_CoroutineCmnt = Ctx.m_instance.m_layerMgr.m_path2Go[NotDestroyPath.ND_CV_App].AddComponent<CoroutineComponent>(); } return m_CoroutineCmnt.StartCoroutine(routine); }
public Coroutine StartCoroutine(IEnumerator routine) { if (m_CoroutineCmnt == null) { m_CoroutineCmnt = Ctx.m_instance.m_layerMgr.m_path2Go[NotDestroyPath.ND_CV_App].AddComponent <CoroutineComponent>(); } return(m_CoroutineCmnt.StartCoroutine(routine)); }
/// <summary> /// コルーチンを管理するクラスを取得する。 /// </summary> public static CoroutineManager CoroutineManager(this asd.Scene scene) { var component = (CoroutineComponent)scene.GetComponent(CoroutineComponentName); if (component == null) { component = new CoroutineComponent(); scene.AddComponent(component, CoroutineComponentName); } return(component.Coroutine); }
/// <summary> /// コルーチンを管理するクラスを取得する。 /// </summary> public static CoroutineManager CoroutineManager(this asd.Layer2D layer) { var component = (CoroutineComponent)layer.GetComponent(CoroutineComponentName); if (component == null) { component = new CoroutineComponent(); layer.AddComponent(component, CoroutineComponentName); } return(component.Coroutine); }
/// <summary> /// コルーチンを管理するクラスを取得する。 /// </summary> public static CoroutineManager CoroutineManager(this asd.Object2D obj) { var component = (CoroutineComponent)obj.GetComponent(CoroutineComponentName); if (component == null) { component = new CoroutineComponent(); obj.AddComponent(component, CoroutineComponentName); } return(component.Coroutine); }