增加编号,loading页提示,延迟毫秒
This commit is contained in:
1 parent
b9aa0131cc
commit
558fb16160
62 files changed
+7533
-2804
No files matched your search
@@ -113,6 +113,7 @@ public class LoginController : BaseScene
|
||||
Dictionary<string, Selectable> formDict, signFormDict;
|
||||
|
||||
public string avatarName { get; private set; }
|
||||
|
||||
public Texture avatar;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
@@ -506,18 +507,39 @@ public class LoginController : BaseScene
|
||||
}
|
||||
async void Init()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
System.Net.NetworkInformation.Ping ping = new System.Net.NetworkInformation.Ping();
|
||||
System.Timers.Timer timer = new System.Timers.Timer();
|
||||
timer.Interval = 1000;
|
||||
timer.AutoReset = true;
|
||||
timer.Elapsed += new ElapsedEventHandler((o, e) =>
|
||||
{
|
||||
var reply = ping.Send("47.97.84.8");
|
||||
if (reply.Status == System.Net.NetworkInformation.IPStatus.Success)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
App.delayTime = new System.Random().Next(300);
|
||||
#else
|
||||
App.delayTime = reply.RoundtripTime;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
App.delayTime = -1;
|
||||
}
|
||||
});
|
||||
timer.Start();
|
||||
});
|
||||
Debug.Log(535);
|
||||
UIManager.Instance.ModalsPanel = this.transform.Find("ModalPanel").GetComponent<PFUIPanel>();
|
||||
userInfos = UIManager.Instance.userInfos;
|
||||
App.DefaultRotateTexture = Utils.ReadTextureFromPlayerPrefs("rotateImage");
|
||||
App.firstEnter = PlayerPrefs.GetInt("firstEnter");
|
||||
PlayerPrefs.SetInt("firstEnter", 1);
|
||||
var notifyId = PlayerPrefs.GetInt("notifyId");
|
||||
//Task.Run(async () =>
|
||||
//{
|
||||
|
||||
//});
|
||||
var r = await ConfigHelper.userApi.GetNotify();
|
||||
|
||||
if (r.result)
|
||||
{
|
||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||
|
||||
Reference in new issue
Block a user