public void ButtonPrevious()
        {
            EventSystem.current.SetSelectedGameObject(null);
            var card = m_Selection.SelectThePreviousCar();
            //m_MySequence.Append(m_ScrollContent.DOLocalMoveX(-m_Cards[card.Id].Position, m_Duration));


            //SelectionSystem.Instance.SelectThePreviousCar();
        }
Exemple #2
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();
            }
        }