void Awake() { _ResolvedAVGScreenSize = (Screen.width + Screen.height) / 2f; _ScrollRect = GetComponent <ScrollRect>(); _RefreshGizmo = GetComponentInChildren <PullToRefreshGizmo>(); // self or children // May be null externalScrollRectProxy = _ScrollRect.GetComponent(typeof(IScrollRectProxy)) as IScrollRectProxy; }
void Awake() { _ResolvedAVGScreenSize = (Screen.width + Screen.height) / 2f; _ScrollRect = GetComponent <ScrollRect>(); _RefreshGizmo = GetComponentInChildren <PullToRefreshGizmo>(); // self or children }