예제 #1
0
        public void OnScroll(PointerEventData eventData)
        {
            //Do zmiany potem :P
            if (Input.GetAxis("Mouse ScrollWheel") < 0f)
            {
                m_Selection.SelectTheNextCar();
            }

            if (Input.GetAxis("Mouse ScrollWheel") > 0f)
            {
                m_Selection.SelectThePreviousCar();
            }
        }
 public void ButtonNext()
 {
     EventSystem.current.SetSelectedGameObject(null);
     var card = m_Selection.SelectTheNextCar();
     //m_MySequence.Append(m_ScrollContent.DOLocalMoveX(-m_Cards[card.Id].Position, m_Duration));
 }