void Start() { utility my_util = new utility(); my_util.set_file_name(Application.persistentDataPath); m_file_name = my_util.get_file_name(); //ファイルを覗いて、更新ならテキストに記入 csv_file file = new csv_file(); file.init(m_file_name); int number = file.get_task_number(); for (int i = 0; i < number; i++) { string data = file.get_data(i, 0); if (data.IndexOf("*") == -1) { //何もしない } else { input_task_name.text = file.get_data(i, 1); input_task_detail.text = file.get_data(i, 2); } } file.save_to_file(m_file_name); }
public void Start() { utility my_util = new utility(); my_util.set_file_name(Application.persistentDataPath); m_file_name = my_util.get_file_name(); }
private utility get_util() { utility my_util = new utility(); my_util.set_file_name(Application.persistentDataPath + "\\test\\"); return(my_util); }
// Use this for initialization void Start () { utility my_util = new utility (); my_util.set_file_name (Application.persistentDataPath); m_file_name = my_util.get_file_name (); content = GetComponent<RectTransform> (); my_task_list = new task_list (); my_task_list.init (m_file_name); renew_item (); }