Esempio n. 1
0
 /// <summary>
 /// 初始化,需要在yield return new WaitForEndOfFrame();后调用.
 /// 主要用于在PageView动态设置后手动调用.
 /// </summary>
 public void Init()
 {
     m_pageView = GetComponent <PageView>();
     m_pageView.Init();
     if (pageIndicator)
     {
         pageIndicator.iPage = this;
         pageIndicator.Build(m_pageView.totalPage + 1);
     }
 }
Esempio n. 2
0
 void Awake()
 {
     m_pageView = GetComponent <PageView>();
 }