Inheritance: UnityEngine.YieldInstruction
Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }
Ejemplo n.º 5
0
        /// <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);
        }