Пример #1
0
    public void Click()
    {
//        print("?");
        InputField NewText = GameObject.Find("Canvas/Button_Panel/Input_File").GetComponent <InputField>();

        path = NewText.text;
        while (path.Length > 0)
        {
            int l = path.Length;
            if (path[l - 1] == '\n' || path[l - 1] == ' ' || path[l - 1] == '\t')
            {
                path = path.Substring(0, l - 1);
            }
            else
            {
                break;
            }
        }
        while (path.Length > 0)
        {
            int l = path.Length;
            if (path[0] == '\n' || path[0] == ' ' || path[0] == '\t')
            {
                path = path.Substring(1, l);
            }
            else
            {
                break;
            }
        }
        Read_code.Work(path);
    }
Пример #2
0
 public void Click()
 {
     Updata.Init_All();
     Read_code.Work(File_Input.path);
 }
Пример #3
0
 static public void F5()
 {
     Updata.Init_All();
     Read_code.Work(File_Input.path);
 }