コード例 #1
0
        public virtual void Init(SfbInternal fileBrowser)
        {
            this.fileBrowser = fileBrowser;
            clickStopwatch = Stopwatch.StartNew();

            scrollRect = GetComponentInChildren<ScrollRect>();
            parentDraggable = GetComponentInParent<SfbDraggable>();

            if (scrollRect.verticalScrollbar != null) {
                scrollRect.verticalScrollbar.onValueChanged.AddListener(StartShowOnScreenEntries);
            }
        }
コード例 #2
0
        public virtual void Init(SfbInternal fileBrowser)
        {
            this.fileBrowser = fileBrowser;
            clickStopwatch   = Stopwatch.StartNew();

            scrollRect      = GetComponentInChildren <ScrollRect>();
            parentDraggable = GetComponentInParent <SfbDraggable>();

            if (scrollRect.verticalScrollbar != null)
            {
                scrollRect.verticalScrollbar.onValueChanged.AddListener(StartShowOnScreenEntries);
            }
        }