Beispiel #1
0
        private static IEnumerator ParallelCoroutine(MonoBehaviour monoBehaviour, params IEnumerator[] actions)
        {
            var count = actions.Count();
            var done  = 0;

            foreach (var action in actions)
            {
                monoBehaviour.Chain().Run(action).Run(() => { done++; }).Start();
            }
            while (done < count)
            {
                yield return(null);
            }
        }