Exemplo n.º 1
0
        public void ScrollCellIndex(int index)
        {
            //Find the library display group this is in
            if (displayGroup == null)
            {
                displayGroup = GetComponentInParent <LibraryDisplayGroup>();
            }

            if (index > displayGroup.gameDataList.Count)
            {
                return;
            }

            transform.localScale = new Vector3(displayGroup.capsuleScale, displayGroup.capsuleScale, 1f);
            //GetComponent<DPScrollHandler>().scrollRect = displayGroup.GetComponent<LoopScrollRect>();

            Setup(displayGroup.gameDataList[index]);
        }