00上传
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user