protected override void OnSafeInit() { base.OnSafeInit(); if (!noScroll) { //_ScrollRect = GetComponentInParent<ScrollRect>(true); _ScrollRect = GNewUITools.SecureComponetInParent <ScrollRect>(RectTrans); } if (_ScrollRect != null) { _ScrollRect.horizontal = !IsVertical; _ScrollRect.vertical = IsVertical; } _Pool = new GNewPrivatePool <GListItem>(PoolSize); }