/// <summary>
        /// Starts a coroutine.
        /// </summary>
        /// <param name="routine">The routine to start.</param>
        /// <returns>An instance of <see cref="EditorYieldInstruction"/> which will run the routine.</returns>
        public static EditorYieldInstruction Start(IEnumerator routine)
        {
            EditorYieldInstruction coroutine = new EditorYieldInstruction(routine);

            coroutine.Start();
            return(coroutine);
        }
Exemplo n.º 2
0
        protected override void StopCoroutineImpl(object routine)
        {
            EditorYieldInstruction yieldInstruction = routine as EditorYieldInstruction;

            yieldInstruction.Stop();
        }
Exemplo n.º 3
0
 override protected object StartCoroutineImpl(IEnumerator coroutine)
 {
     return(EditorYieldInstruction.Start(coroutine));
 }