コード例 #1
0
        // Token: 0x06000850 RID: 2128 RVA: 0x00024B1C File Offset: 0x00022D1C
        public void Tick()
        {
            if (this.m_corutineList.Count == 0)
            {
                return;
            }
            LinkedListNode <IEnumerator> next;

            for (LinkedListNode <IEnumerator> linkedListNode = this.m_corutineList.First; linkedListNode != null; linkedListNode = next)
            {
                if (this.m_cancel)
                {
                    break;
                }
                bool flag = TinyCorutineHelper.MoveNext(linkedListNode.Value);
                next = linkedListNode.Next;
                if (!flag)
                {
                    this.m_corutineList.Remove(linkedListNode);
                }
            }
            if (this.m_cancel)
            {
                this.m_corutineList.Clear();
                this.m_cancel = false;
            }
        }
コード例 #2
0
 // Token: 0x06000851 RID: 2129 RVA: 0x00024BA8 File Offset: 0x00022DA8
 public static bool MoveNext(IEnumerator iter)
 {
     if (iter == null)
     {
         return(false);
     }
     if (iter.Current != null)
     {
         IEnumerator iter2 = iter.Current as IEnumerator;
         if (TinyCorutineHelper.MoveNext(iter2))
         {
             return(true);
         }
     }
     return(iter.MoveNext());
 }