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); }
public void Click() { Updata.Init_All(); Read_code.Work(File_Input.path); }
static public void F5() { Updata.Init_All(); Read_code.Work(File_Input.path); }