/**
     * JSONデータ読み込みボタン.
     */
    public void OnClickJsonLoadButton()
    {
        InputField fileNameInputField = GameObject.Find("FileNameInputField").GetComponent <InputField>();
        NKTextMan  textMan            = gameObject.GetComponent <NKTextMan> ();

        string strStream = textMan.readText("/Resources/Save/" + fileNameInputField.text);
    }
Beispiel #2
0
    static public string LoadJson(string path, string file)
    {
        string json = "";

        if (TitleDataLoad.instance.LoadData)
        {
            foreach (JsonBuffer b in DataBuffer)
            {
                if (b.path == path && b.file == file)
                {
                    return(b.json);
                }
            }
#if true
            json = PlayerPrefs.GetString(path + file, "");
#else
            string json = NKTextMan.readText(path + file);
#endif
        }
        DataBuffer.Add(new JsonBuffer(path, file, json));
        return(json);
    }