Exemplo n.º 1
0
 void Start()
 {
     NextButt.Del += () => {
         int r = ((MainCon.NowN + 2) % (Names.AllObj.Length + 1)) - 1;
         MainCon.Reset(r);
     };
     OutButt.Del += () => {
         MainCon.Reset(-1);
     };
     drawMask.onStartDraw += (pos) => {
         StartCoroutine(OpenNextButt());
     };
 }
Exemplo n.º 2
0
 public void Open()
 {
     if (MainCon.NowN >= 0 && MainCon.NowN < Names.AllObj.Length)
     {
         //改變刮漆下的字
         if (MainCon.NowN < 3)
         {
             Texts.OnOnlyObjs(0);
         }
         else
         {
             Texts.OnOnlyObjs(1);
         }
         Names.OnOnlyObjs(MainCon.NowN);
         print(MainCon.NowN);
     }
     else
     {
         print("編號錯誤退回上一頁");
         MainCon.Reset(-1);
     }
 }