public void ScrollTo(BaseListElementData data) { var index = m_elementsData.IndexOf(data); if (index != -1) { OnScrollToElement.Call(index); } }
public void ScrollTo(int index) { if ((index < 0) || (index >= m_elementsData.Count)) { return; } OnScrollToElement.Call(index); }