public void OnRightButtonClicked() { if (indexNumber < 4) { indexNumber++; } scroll_type = SCROLL_TYPE.BUTTON; }
public void OnLeftButtonClicked() { if (indexNumber > 1) { indexNumber--; } scroll_type = SCROLL_TYPE.BUTTON; }
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; }
public void OnScrollValueChanged() { scroll_type = SCROLL_TYPE.SCROLL; }