Esempio n. 1
0
        public virtual void TestCleanup()
        {
            int n = 10;

            while (n-- > 0)
            {
                CoroutineBase.UpdateCoroutine();
            }
        }
Esempio n. 2
0
        protected void Run(IEnumerator r)
        {
            runner.Add(r);

            while (runner.Count > 0)
            {
                CoroutineBase.UpdateCoroutine();
                for (int i = 0; i < runner.Count; i++)
                {
                    var item = runner[i];
                    if (!item.MoveNext())
                    {
                        runner.RemoveAt(i);
                        i--;
                    }
                }
            }
        }