提交 ddd62ddb 编写于 作者: 魔术师Dix's avatar 魔术师Dix

【refactor】重命名;

上级 71cf67e9
......@@ -72,7 +72,7 @@ namespace UpmGitTool
[ButtonGroup("TEST")]
public void TestWrite()
{
CoreFunction.SaveManifes();
CoreFunction.SaveManifest();
}
private IEnumerator AutoReadFeatchResult()
......
......@@ -16,20 +16,20 @@ namespace UpmGitTool
/// 保存清单文件
/// 这里是直接保存AppState里面的清单文件;
/// </summary>
public static void SaveManifes()
public static void SaveManifest()
{
var path= AppState.Path_ManifestFile;
var manifes = AppState.unityManifes;
manifes.SaveManifes(path);
var manifest = AppState.unityManifes;
manifest.SaveManifest(path);
}
/// <summary>
/// 保存清单文件
/// </summary>
public static void SaveManifes(this UnityManifes manifes, string path)
public static void SaveManifest(this UnityManifes manifest, string path)
{
if (string.IsNullOrEmpty(path)) return;
if (manifes == null) return;
if (manifest == null) return;
if (!File.Exists(path)) return;
......@@ -45,7 +45,7 @@ namespace UpmGitTool
using (var sw = new StreamWriter(fs))
{
sw.Write(JsonConvert.SerializeObject(manifes, Formatting.Indented));
sw.Write(JsonConvert.SerializeObject(manifest, Formatting.Indented));
sw.Close();
}
fs.Close();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册