コード例 #1
0
    public void StartGame(int i)
    {
        if (i == 2)
        {
            panel.SetActive(true); return;
        }
        if (s.Split(',').Length > 1)
        {
            if (i == 1)
            {
                NativeGallery.GetImageFromGallery(Callback, "Pick an image", "image/*", -1);
                i = 0;
            }
            else
            {
                i  = 0;
                s += ", ";
                print(s);
                tileLayoutManager.list.Add(s.Split(','));

                /*foreach (string[] s in tileLayoutManager.list)
                 * {
                 *  foreach(string st in s)
                 *  {
                 *      print(st);
                 *  }
                 * }*/
                tileLayoutManager.SaveList();
                ui.Return();
            }
            return;
        }
        Debug.Log("Not enough words");
    }