void 生成Json文件() { string path = System.IO.Path.Combine(Application.streamingAssetsPath, "SetFile", "SetConfig.json"); SetConfig setConfig = new SetConfig(false, false); ReadJson.WriteJson(setConfig, path); }
//private void Update() //{ // if (Input.GetKeyDown("1")) // { // 生成Json文件(); // } //} void Init() { string path = System.IO.Path.Combine(Application.streamingAssetsPath, "SetFile", "SetConfig.json"); setConfig = ReadJson.ReadJsonData <SetConfig>(path); isInit = true; }