using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class LevelButtonScrollRect : MonoBehaviour ,IBeginDragHandler,IEndDragHandler
{
private ScrollRect scrollRect;
public float smoothing = 4; //滑动速度
private float[] pageArray=new float[]{
0,0.33333f,0.66666f,1 }; //分页位置数组,根据页数设置0-1区间
public Toggle[] toggle