Ejemplo n.º 1
0
 public void OnRightButtonClicked()
 {
     if (indexNumber < 4)
     {
         indexNumber++;
     }
     scroll_type = SCROLL_TYPE.BUTTON;
 }
Ejemplo n.º 2
0
 public void OnLeftButtonClicked()
 {
     if (indexNumber > 1)
     {
         indexNumber--;
     }
     scroll_type = SCROLL_TYPE.BUTTON;
 }
Ejemplo n.º 3
0
 void Start()
 {
     rect              = content.GetComponent <RectTransform>();
     contentWidth      = content.GetComponent <GridLayoutGroup>().cellSize.x + content.GetComponent <GridLayoutGroup>().spacing.x;
     indexNumber       = 1;
     scrollIndexNumber = 1;
     startMarker       = new Vector3(0, 0, 0);
     endMarker         = new Vector3(0, 0, 0);
     scroll_type       = SCROLL_TYPE.SCROLL;
 }
Ejemplo n.º 4
0
 public void OnScrollValueChanged()
 {
     scroll_type = SCROLL_TYPE.SCROLL;
 }