change
This commit is contained in:
@@ -12,6 +12,7 @@ namespace NBF
|
||||
{
|
||||
private string serverUrl;
|
||||
private string serverPassword;
|
||||
private bool autoLogin = true;
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
@@ -29,7 +30,7 @@ namespace NBF
|
||||
InputPass.Input.text = serverPassword;
|
||||
if (!string.IsNullOrEmpty(serverUrl) && !string.IsNullOrEmpty(serverPassword))
|
||||
{
|
||||
Connect();
|
||||
if (autoLogin) Connect();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,12 +63,16 @@ namespace NBF
|
||||
|
||||
PlayerPrefs.SetString("serverUrl", serverUrl);
|
||||
PlayerPrefs.SetString("serverPassword", serverPassword);
|
||||
|
||||
Game.Instance.Tick((ret) =>
|
||||
|
||||
// PlayerPanel.Show();
|
||||
|
||||
autoLogin = false;
|
||||
Net.Instance.Tick(0, 0, 0, (ret) =>
|
||||
{
|
||||
if (ret)
|
||||
if (ret.Code == 0)
|
||||
{
|
||||
PlayerPanel.Show();
|
||||
// PlayerPanel.Show();
|
||||
VideoEditorPanel.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user