예제 #1
0
    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);
    }
예제 #2
0
    public void Start()
    {
        utility my_util = new utility();

        my_util.set_file_name(Application.persistentDataPath);
        m_file_name = my_util.get_file_name();
    }
예제 #3
0
    private utility get_util()
    {
        utility my_util = new utility();

        my_util.set_file_name(Application.persistentDataPath + "\\test\\");

        return(my_util);
    }
예제 #4
0
	// 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 ();
	}