This commit is contained in:
2025-06-05 17:12:56 +08:00
parent 1f19ba2d38
commit b0ac6cb264
2 changed files with 15 additions and 1 deletions

View File

@@ -47,6 +47,11 @@ namespace Stary.Evo.Editor
window.Show();
}
protected override void OnDisable()
{
base.OnDisable();
EditorUtility.ClearProgressBar();
}
protected override async void Initialize()
{
@@ -93,7 +98,16 @@ namespace Stary.Evo.Editor
PlayerPrefs.SetString("LoginUserName", userName);
PlayerPrefs.SetString("LoginPassword", password);
string url = ip + "/Authentication/login";
EditorUtility.DisplayProgressBar("提示", $"登陆中~", 0f);
bool islogin = await WebRequestSystem.Login(url, userName, password);
float progress = 0f;
while (progress>=1f)
{
progress += 0.1f;
EditorUtility.DisplayProgressBar("提示", $"登陆中~", progress);
await Task.Delay(TimeSpan.FromSeconds(0.2f));
}
EditorUtility.ClearProgressBar();
UpdateMessage(islogin);
}

View File

@@ -1,6 +1,6 @@
{
"name": "com.staryevo.main",
"version": "1.2.1",
"version": "1.2.2",
"displayName": "00.StaryEvo",
"description": "This is an Framework package(后台服务器版本端口9527)",
"unity": "2021.3",