private void SaveVesionToLocal(HTTPResponse response) { string savePath = PathHelp.GetDownLoadPath(); if (!Directory.Exists(savePath)) { Directory.CreateDirectory(savePath); } version_Path = Path.Combine(savePath, version); Debug.Log("版本号获得成功--" + response.DataAsText); bool isUpdate = VersionController.ReadLocalVersion(response.DataAsText, version_Path); if (isUpdate)//需要更新 { RequestVersionList(); } else { Debug.Log("已是最新版本不需更新"); if (finish != null) { finish(); } } }