remove all corutine base restAPI call

This commit is contained in:
lwj
2025-06-24 17:02:33 +09:00
parent b111be2693
commit 8e0bb1a559
12 changed files with 729 additions and 613 deletions

View File

@@ -24,14 +24,23 @@ namespace Octopus.Simulator
}
public void RequestInfo()
{
WebManager.Instance.Request_Get($"{WebManager.Instance.apiConfig.project}/{WebParameters.config.projectId}", (flag, value) =>
{
if (flag)
{
var info = JsonConvert.DeserializeObject<ProjectInfo>(value);
SetText(info.data.name);
}
});
var reqeustURL = $"{WebManager.Instance.apiConfig.project}/{WebParameters.config.projectId}";
WebManager.Instance.Reqeust<ProjectInfoData>(reqeustURL, RequestType.GET, ProjectInfoCallback);
//WebManager.Instance.Request_Get(reqeustURL, (flag, value) =>
//{
// if (flag)
// {
// var info = JsonConvert.DeserializeObject<ProjectInfo>(value);
// SetText(info.data.name);
// }
//});
}
public void ProjectInfoCallback(ProjectInfoData response)
{
SetText(response.name);
}
void SetText(string data)