コード例 #1
0
 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;
 }
コード例 #2
0
 void Awake()
 {
     _ResolvedAVGScreenSize = (Screen.width + Screen.height) / 2f;
     _ScrollRect            = GetComponent <ScrollRect>();
     _RefreshGizmo          = GetComponentInChildren <PullToRefreshGizmo>(); // self or children
 }