Beispiel #1
0
            public AdapterCtrl(BaseAdapter <DATA, VH> b, BaseParams parms)
            {
                baseAdapter = b;
                if (parms.scrollRect.horizontal)
                {
                    _PrefabSize = b.getRect().width;
                }
                else
                {
                    _PrefabSize = b.getRect().height;
                }


                //parms.randomizeSizesToggle.onValueChanged.AddListener((value) => _RandomizeSizes = value);

                // Need to call Init(Params) AFTER we init our stuff, because both GetItem[Height|Width]() and UpdateViewsHolder() will be called in this method
                Init(parms);
            }