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

【Refactor】添加本地代码的宏定义;

上级 fdf161e9
......@@ -31,14 +31,20 @@ namespace UpmGitTool
Application.targetFrameRate = 30;
AppState.Setting = Setting;
#if UNITY_EDITOR
AppState.Path_FetchJsCmd = FetchPackagePath;
AppState.Path_WorkingDirectory = WorkingDirectory;
AppState.Path_NodeJsExe = NodeJsPath;
AppState.Path_WorkingDirectory = WorkingDirectory;
#endif
GYEventsCenter.RegisterEventMsg(Lib.ON_ADD_GIT_FETCH_REQ, OnAddGitFetchReq);
StartCoroutine(AutoReadFeatchResult());
}
#if UNITY_EDITOR
[LabelText("Node.exe路径")]
[FilePath]
public string NodeJsPath;
......@@ -52,14 +58,14 @@ namespace UpmGitTool
public string WorkingDirectory;
[Title("编辑器测试")]
[LabelText("测试工程")]
[LabelText("测试工程")]
[FolderPath(AbsolutePath = true)]
[PropertyOrder(15)]
public string TestProjectPath;
[PropertyOrder(15)]
[LabelText("测试工程路径")]
[ShowInInspector,DisplayAsString]
[ShowInInspector, DisplayAsString]
public string Path_ManifestFile => AppState.Path_ManifestFile;
[Button("读取测试工程")]
......@@ -78,6 +84,8 @@ namespace UpmGitTool
CoreFunction.SaveManifest();
}
#endif
private IEnumerator AutoReadFeatchResult()
{
string resultDir = $"{AppState.Path_WorkingDirectory}/Results-2.0.0";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册