void Start() { if (PageIndex == null) { if (GameObject.Find("Canvas/Command/Text")) { PageIndex = GameObject.Find("Canvas/Command/Text").GetComponent <Text>(); } } //虚构数据 for (int i = 0; i < 5; i++) { ArrayList temp = new ArrayList(); for (int j = 0; j < 3; j++) { TTTTT t = new TTTTT(); t.Name = (i + "<+>" + j).ToString(); temp.Add(t); } dic.Add(i, temp); } //放到运算类中 RefreshPage <TTTTT> .GetInstance().Init(dic, RefreshSelf); }
/// <summary> /// 当前分类的上一页 /// </summary> public void Previous() { RefreshPage <TTTTT> .GetInstance().GetPageCells(ChoosePage.Minus); }
/// <summary> /// 当前分类的下一页 /// </summary> public void Next() { RefreshPage <TTTTT> .GetInstance().GetPageCells(ChoosePage.Add); }
/// <summary> /// 切换分类“》”按钮 /// </summary> public void Right() { RefreshPage <TTTTT> .GetInstance().Refreshcurrent(ChoosePage.Add); }
/// <summary> /// 切换分类“《”按钮 /// </summary> public void Left() { RefreshPage <TTTTT> .GetInstance().Refreshcurrent(ChoosePage.Minus); }