Example #1
0
        private IEnumerator UpdateLinksWorker()
        {
            for (int i = 0; i < this.Tabs.Count; i++)
            {
                this.Tabs[i].gameObject.SetActive(false);
            }
            yield return(null);

            yield return(null);

            int activeCount = 0;

            foreach (DynamicBookPages.ItemLinkedPage itemLinkedPage in this.Pages)
            {
                if (itemLinkedPage != null && !itemLinkedPage.Anchor)
                {
                    DynamicBookPages.UpdatePage(itemLinkedPage, this.Pages);
                    if (itemLinkedPage.Activated)
                    {
                        this.Tabs[activeCount].MyPageNew = itemLinkedPage.Page;
                        this.Tabs[activeCount].gameObject.SetActive(true);
                        activeCount++;
                    }
                }
            }
            yield break;
        }