This commit is contained in:
2026-02-12 22:15:15 +08:00
parent 47a5cff08b
commit 502c6efedc
58 changed files with 2114 additions and 708 deletions

View File

@@ -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
{