예제 #1
0
        public EnhancedScrollerCellView GetCellView(EnhancedScroller scroller, int dataIndex, int cellIndex)
        {
            BallItemCellView ballItemCellView = scroller.GetCellView(m_CellViewPrefab) as BallItemCellView;

            ballItemCellView.SetData(m_Data[dataIndex]);
            return(ballItemCellView);
        }
예제 #2
0
        // 新規セルビュー追加時デリゲート
        private void CellViewInstantiated(EnhancedScroller scroller, EnhancedScrollerCellView cellView)
        {
            BallItemCellView ballItemCell = cellView as BallItemCellView;

            if (ballItemCell == null)
            {
                return;
            }

            List <UIPart> parts = new List <UIPart>
            {
                new BallItemButtonPart(ballItemCell, ballItemCell.textButton),
                new BallItemButtonPart(ballItemCell, ballItemCell.fixedIntegerButton),
                new BallItemButtonPart(ballItemCell, ballItemCell.dataIntegerButton)
            };

            // 即時追加
            UIController.Instance.AttachParts(TargetLayer, parts);
        }
예제 #3
0
 public BallItemPart(BallItemCellView ballItemCellView)
     : base(ballItemCellView.transform)
 {
     m_BallItemCellView = ballItemCellView;
 }
예제 #4
0
 public BallItemButtonPart(BallItemCellView ballItemCellView, GameObject buttonObject)
     : base(buttonObject.transform)
 {
     m_BallItemCellView = ballItemCellView;
 }