Exemple #1
0
        private int GetScrollValue()
        {
            float scrollValue = m_pattern.GetScrollValue(m_content.anchoredPosition);

            if (scrollValue > -1 && scrollValue < 0)
            {
                scrollValue = 0.0f;
            }

            return(Mathf.FloorToInt(scrollValue));
        }
Exemple #2
0
 private float GetScrollValue(Vector2 value)
 {
     return(m_pattern.GetScrollValue(m_rect.content.anchoredPosition));
 }