public override void CreatePages(GameObject textMesh, GameObject paper)
        {
            int pageNum = 1;
            Page p = new Contents("Table of Contents", textMesh, paper, pageNum++);
            Page contents = p;
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new EarthSpells("Earth", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new WindSpells("Wind", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new FireSpells("Fire", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new WaterSpells("Water", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);

            SetTableOfContentsList(contents);
        }
예제 #2
0
        public override void CreatePages(GameObject textMesh, GameObject paper)
        {
            int  pageNum  = 1;
            Page p        = new Contents("Table of Contents", textMesh, paper, pageNum++);
            Page contents = p;

            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new EarthSpells("Earth", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new WindSpells("Wind", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new FireSpells("Fire", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);
            p = new WaterSpells("Water", textMesh, paper, pageNum++);
            p.page.transform.SetParent(documentHolder.transform);
            _pages.Add(p);

            SetTableOfContentsList(contents);
        }