191——unityWebRequest 安卓端读取jsonwen'j
//1.明确存储地址
//2.代码转换成Json文本
string filePath =
Application.streamingAssetsPath + "/WeaponProperties.json";
string saveJsonStr = JsonMapper.ToJson(weaponPropertiesList);
//3.接上"水管"(流)到地址
//4."喷水"到地址(写入Json文件)
StreamWriter sw = new StreamWriter(filePath);
sw.Write(saveJsonStr);
//5.把水管收起来(释放)
sw.Close();