private int GetScrollValue() { float scrollValue = m_pattern.GetScrollValue(m_content.anchoredPosition); if (scrollValue > -1 && scrollValue < 0) { scrollValue = 0.0f; } return(Mathf.FloorToInt(scrollValue)); }
private float GetScrollValue(Vector2 value) { return(m_pattern.GetScrollValue(m_rect.content.anchoredPosition)); }