Exemplo n.º 1
0
        static IEnumerator _Concat(IEnumerableAction action1, IEnumerableAction action2)
        {
            IEnumerator enumerator = action1.Run();

            while (enumerator.MoveNext())
            {
                yield return(enumerator.Current);
            }

            enumerator = action2.Run();
            while (enumerator.MoveNext())
            {
                yield return(enumerator.Current);
            }
        }
Exemplo n.º 2
0
 public Coroutine StartCoroutine(IEnumerableAction enumerableAction)
 {
     return(StartCoroutine(() => enumerableAction.Run()));
 }