Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }