Example #1
0
 // Use this for initialization
 void Start()
 {
     for (int i = 0; i < 15; i++)
     {
         for (int j = 0; j < 15; j++)
         {
             GameObject s = Instantiate(Btn, transform);
             Re = s.GetComponent <RectTransform>();
             Re.localPosition = new Vector3(29.5f * j - (29.5f * 14 / 2) - 2, 29.5f * i - (29.5f * 14 / 2) + 22, 0);
             s.GetComponent <Btn>().SetBtnXY(j, i);
             PointSx Sx = new PointSx();
             Sx.x     = j;
             Sx.y     = i;
             Sx.Point = new Vector3(29.5f * j - (29.5f * 14 / 2) - 2, 29.5f * i - (29.5f * 14 / 2) + 22, 0);
             Gamemanager.Ins.PoinsAdd(i, j, Sx);
         }
     }
 }
Example #2
0
 public void PoinsAdd(int a, int b, PointSx c)
 {
     Points[a, b] = c;
 }