/// <summary> /// 保存 /// </summary> public void Save() { using (Stream stream = new FileStream(Const.Path_Settings, FileMode.Create)) { FileUtil.SaveJson(stream, Settings); stream.Close(); } }
void SavePosData() { PosData posData = new PosData(); foreach (var item in CastlesPoint) { posData.Datas.Add(new PosItem() { ID = item.Key, Pos = item.Value.position.ToVec3() }); } FileUtil.SaveJson(Path.Combine(Const.Path_ResourcesText, "CastlePosData.json"), posData); }
public void Save() { FileUtil.SaveJson(Const.Path_Shortcuts, InputAsset.ToJson()); }