| | |
| | | return m_Scorller.GetCellSize(_dataIndex);
|
| | | }
|
| | |
|
| | | //滑动过去
|
| | | public void MoveToIndex(int index, float _time, EnhancedScroller.TweenType _tweenType)
|
| | | {
|
| | | if (!inited)
|
| | | {
|
| | | cacheJump = index;
|
| | | return;
|
| | | }
|
| | | if ((index < 0 || index >= _data.Count) && !m_Scorller.Loop)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var _size = m_Scorller.GetScrollPositionForDataIndex(index, EnhancedScroller.CellViewPositionEnum.Before);
|
| | |
|
| | | m_Scorller.Tween(_tweenType, _time, _size);
|
| | | }
|
| | |
|
| | |
|
| | | public void JumpIndex(float _delta, float _time, EnhancedScroller.TweenType _tweenType)
|
| | | {
|
| | | if (!inited)
|