// Update is called once per frame void Update() { result = "camera1:\n" + tex1.text + "\n\n" + "camera2:\n" + tex2.text + "\n\n" + "camera3:\n" + tex3.text + "\n\n" + "camera4:\n" + tex4.text + "\n\n" + "camera5:\n" + tex5.text + "\n\n" + "camera6:\n" + tex6.text + "\n\n" + "camera7:\n" + tex7.text + "\n\n" + "camera8:\n" + tex8.text + "\n\n"; string curr_dir = System.Environment.CurrentDirectory; if (if_save) { if (File.Exists(curr_dir + "\\" + "Coordinates_last.txt")) { string pre_data = frw.ReadFileAll(curr_dir, "Coordinates_last.txt"); frw.CreateFile(curr_dir, "Coordinates_sec_last.txt", pre_data); } if (File.Exists(curr_dir + "\\" + "Coordinates.txt")) { string pre_data = frw.ReadFileAll(curr_dir, "Coordinates.txt"); frw.CreateFile(curr_dir, "Coordinates_last.txt", pre_data); } frw.CreateFile(curr_dir, "Coordinates.txt", result); } // if (KeyMove.get_isMove_status()) // { // BtnAndPositionHandle.collect_data(); // } }