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