Example #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     if (!isInit)
     {
         FindComponent();
         RegisteredEvents();
         isInit = true;
         //Debug.LogError("章节初始化");
         //Debug.LogError(Instance.GetHashCode());
     }
 }
Example #2
0
 void FindCompoment()
 {
     scrollRect = GetComponent <ScrollRect>();
     //loop = GetComponent<LoopVerticalScrollRect>();
     _uiChapter = GetComponentInParent <UIChapterComponent>();
 }